Click or drag to resize
Ab4d.SharpEngine logo

SeparableKernelPostProcess Class

SeparableKernelPostProcess applies horizontal or vertical post process based on the specified offsets and weights.
Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.CoreComponentBase
    Ab4d.SharpEngine.PostProcessingPostProcessBase
      Ab4d.SharpEngine.PostProcessingStandardPostProcess
        Ab4d.SharpEngine.PostProcessingSeparableKernelPostProcess
          Ab4d.SharpEngine.PostProcessingGaussianBlurPostProcess

Namespace: Ab4d.SharpEngine.PostProcessing
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public abstract class SeparableKernelPostProcess : StandardPostProcess

The SeparableKernelPostProcess type exposes the following members.

Constructors
 NameDescription
Public methodSeparableKernelPostProcess Initializes a new instance of the SeparableKernelPostProcess class.
Top
Properties
 NameDescription
Public propertyFilterSize Gets or sets the size of the filter - number of pixels that are read to get the color produces by this post-process.
Public propertyIsVerticalPass 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.
Top
Methods
 NameDescription
Protected methodCustomBindAction
(Overrides StandardPostProcessCustomBindAction(RenderingContext, CommandBuffer, PipelineLayout))
Protected methodFillOffsetsAndWeights 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.
Protected methodGetFragmentPushConstantsSize GetFragmentPushConstantsSize can be overriden to provide the size in bytes of the push constants in fragment shader.
(Overrides StandardPostProcessGetFragmentPushConstantsSize)
Protected methodGetFragmentShader
(Overrides StandardPostProcessGetFragmentShader(VulkanDevice))
Public methodToString
(Overrides PostProcessBaseToString)
Top
Fields
 NameDescription
Protected fieldareOffsetsAndWeightsDirty 
Public fieldMaxFilterSize MaxFilterSize defines the maximum filter size that is supported by this post-process.
Top
Remarks

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.

See Also