Click or drag to resize
AB4D logo

RenderTextureRenderingStep Class

RenderTextureRenderingStep is a rendering step that can render the specified SourceTexture (as ShaderResourceView) to a part of the screen specified with the TargetViewport. Rendering of the colors can be adjusted with setting the Offsets and Factors. It is also possible to specify a CustomBlendState and CustomDepthStencilState.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXDXResourceBase
    Ab3d.DirectXDisposableDXResource
      Ab3d.DirectXDXSceneResource
        Ab3d.DirectXRenderingStepBase
          Ab3d.DirectXRenderTextureRenderingStep

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public sealed class RenderTextureRenderingStep : RenderingStepBase

The RenderTextureRenderingStep type exposes the following members.

Constructors
Properties
 NameDescription
Public propertyCustomBlendState Gets or sets a CustomBlendState that is used to render the texture. When null (by default) the Opaque is used.
Public propertyCustomDepthStencilState Gets or sets a DepthStencilState that is used to render the texture. When null (by default) the DepthNone is used.
Public propertyFactors Gets or sets a Vector4 that specifies RGBA values that are multiplied with each color displayed with this post process. Default value is (1, 1, 1, 0)
Public propertyOffsets Gets or sets a Vector4 that specifies RGBA values that are added to each color displayed with this post process. Default value is (0, 0, 0, 1)
Public propertySourceTexture Gets or sets a ShaderResourceView that will be rendered with this rendering step.
Public propertyTargetViewport Gets or sets a part of the screen that will be affected by this PostProcess. The coordinates are defined in NDC space (Normalized Device Coordinates) that means that the full screen post process will be defined as (0, 0, 1, 1); upper left quarter is (0, 0, 0.5f, 0.5f). The default value is (0, 0, 1, 1).
Top
Methods
 NameDescription
Public methodStatic memberConvertFormatToTextureChannelsCount ConvertFormatToTextureChannelsCount gets the number of channels (colors) from the specified texture format.
Public methodStatic memberGetTextureChannelsCount GetTextureChannelsCount returns number of channels (colors) that are used by the specified sourceTexture.
Public methodStatic memberRenderTexture(RenderingContext, ShaderResourceView, ViewportF) RenderTexture static method rendered the specified sourceShaderResourceView to the viewport and on the current render targets in the renderingContext.
Public methodStatic memberRenderTexture(RenderingContext, ShaderResourceView, ViewportF, Vector4, Vector4, BlendState, DepthStencilState) RenderTexture static method rendered the specified sourceShaderResourceView to the viewport and on the current render targets in the renderingContext. This method also allows changing the colors in the source texture with using offsets and factors parameters.
Top
See Also