Click or drag to resize
Ab4d.SharpEngine logo

ExpandPostProcess Class

ExpandPostProcess renders an outline in a two pass (horizontal and vertical) post process.
Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.CoreComponentBase
    Ab4d.SharpEngine.PostProcessingPostProcessBase
      Ab4d.SharpEngine.PostProcessingStandardPostProcess
        Ab4d.SharpEngine.PostProcessingExpandPostProcess

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

The ExpandPostProcess type exposes the following members.

Constructors
 NameDescription
Public methodExpandPostProcess Initializes a new instance of the ExpandPostProcess class.
Top
Properties
 NameDescription
Public propertyBackgroundColor The color of the background - only colors that are not the same as background will be expanded.
Public propertyExpansionWidth Gets or sets the width of the expansion (the distance in pixels that are checked away from the current pixel). ExpansionWidth values can be between 1 (zero is not allowed) and 16 (ExpandPostProcess.MaxExpansionWidth). Bigger numbers mean that more pixels will be sampled in pixel shader and will therefore require more time to execute the post process. Default value is 2.
Public propertyFactors Gets or sets a Vector4 that specifies RGBA values that are multiplied with each rendered pixel. Default value is (1, 1, 1, 1)
Public propertyIsVerticalRenderingPass Gets a boolean that specifies if vertical rendering pass is applied. If false then horizontal rendering pass is applied. This value is set in constructor. Note that in order to get full expand effect then two ExpandPostProcess must be used - one with horizontal and one with vertical rendering pass.
Public propertyOffsets Gets or sets a Vector4 that specifies RGBA values that are added to each rendered pixel. Default value is (0, 0, 0, 0)
Top
Methods
 NameDescription
Protected methodCustomBindAction
(Overrides StandardPostProcessCustomBindAction(RenderingContext, CommandBuffer, PipelineLayout))
Protected methodDispose Releases unmanaged and managed resources (when disposing is true). This method may be called only from the CheckAndDispose(Boolean) method and must not be called manually by the user.
(Overrides StandardPostProcessDispose(Boolean))
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))
Protected methodGetInputTextureSampler
(Overrides StandardPostProcessGetInputTextureSampler(VulkanDevice))
Top
Fields
 NameDescription
Public fieldStatic memberDefaultFactors Default Factors value
Public fieldStatic memberDefaultOffsets Default Offsets value
Public fieldStatic memberMaxExpansionWidth Max value for ExpansionWidth.
Top
Remarks

[Missing <remarks> documentation for "T:Ab4d.SharpEngine.PostProcessing.ExpandPostProcess"]

See Also