![]() | |
Separable |
public abstract class SeparableKernelPostProcess : StandardPostProcess
The SeparableKernelPostProcess type exposes the following members.
Name | Description | |
---|---|---|
![]() | SeparableKernelPostProcess | Initializes a new instance of the SeparableKernelPostProcess class. |
Name | Description | |
---|---|---|
![]() | FilterSize | Gets or sets the size of the filter - number of pixels that are read to get the color produces by this post-process. |
![]() | IsVerticalPass | Gets a boolean that specifies if vertical rendering pass is applied. If false then horizontal pass is applied. This value is set in constructor. Note that in order to render this post process fully, it needs to run in two passes - once as vertical and once as horizontal post process. |
Name | Description | |
---|---|---|
![]() | CustomBindAction | (Overrides StandardPostProcessCustomBindAction(RenderingContext, CommandBuffer, PipelineLayout)) |
![]() | FillOffsetsAndWeights | FillOffsetsAndWeights fulls the specified offsets and weights arrays with values that are used in the shader to render this post process. Offsets define how far from the texture coordinate we sample pixel. Weights define how much weight this pixel has in the final color. |
![]() | GetFragmentPushConstantsSize |
GetFragmentPushConstantsSize can be overriden to provide the size in bytes of the push constants in fragment shader.
(Overrides StandardPostProcessGetFragmentPushConstantsSize) |
![]() | GetFragmentShader | (Overrides StandardPostProcessGetFragmentShader(VulkanDevice)) |
![]() | ToString | (Overrides PostProcessBaseToString) |
Name | Description | |
---|---|---|
![]() | areOffsetsAndWeightsDirty | |
![]() | MaxFilterSize | MaxFilterSize defines the maximum filter size that is supported by this post-process. |
SeparableKernelPostProcess applies horizontal or vertical post process based on the specified offsets and weights.
Offsets define how far from the texture coordinate we sample pixel. The values must be divided by the texture width (when horizontal pass) or height (when vertical pass). Weights define how much weight this pixel has in the final color.