Click or drag to resize
AB4D logo

ResolveBackBufferRenderingStep Class

ResolveBackBufferRenderingStep resolves the multi-sampled back buffer (MSAA) and down-samples the super-samples back buffer (SSAA) into a back buffer without multi-sampling. The source buffer is get from the renderingContext.CurrentBackBuffer. The destination buffer can be customized by calling SetCustomDestinationBuffer(Texture2D, Texture2DDescription, RenderTargetView). When this method is not called, then the renderingContext.FinalBackBuffer is used for destination buffer.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXDXResourceBase
    Ab3d.DirectXDisposableDXResource
      Ab3d.DirectXDXSceneResource
        Ab3d.DirectXRenderingStepBase
          Ab3d.DirectXResolveBackBufferRenderingStep

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax
C#
public class ResolveBackBufferRenderingStep : RenderingStepBase

The ResolveBackBufferRenderingStep type exposes the following members.

Constructors
 NameDescription
Public methodResolveBackBufferRenderingStep Initializes a new instance of the ResolveBackBufferRenderingStep class.
Top
Properties
 NameDescription
Public propertyCenterPixelWeight Gets or sets weight from 0 to 1 of the center pixel. Bigger values means that center pixel will get more weight in the final pixel. Default value is 0.28. This value is used only when ResolveFilter is not None;
Public propertyCustomSSAABackBuffer When not null, then this ShaderResourceView is used instead of renderingContext.SSAABackBuffer.
Public propertyDestinationBuffer Gets a Buffer (Texture2D) that will get the down-sampled buffer. If null, then renderingContext.FinalBackBuffer is used for destination buffer. This property is set by the SetCustomDestinationBuffer(Texture2D, Texture2DDescription, RenderTargetView) method.
Public propertyDestinationBufferDescription Gets the Texture2DDescription for the DestinationBuffer. This property is set by the SetCustomDestinationBuffer(Texture2D, Texture2DDescription, RenderTargetView) method.
Public propertyDestinationRenderTargetView Gets the RenderTargetView for the DestinationBuffer. This property is set by the SetCustomDestinationBuffer(Texture2D, Texture2DDescription, RenderTargetView) method.
Public propertyResolveFilter Gets or sets the type of down-sampling filter that is used when resolving the super-sampled texture. Default value is RotatedFilterSize5. Using a filter results in generally smoother at the cost of a blurrier final result.
Public propertyResolveMultisampledBackBuffer Gets or sets a Boolean that specifies if this ResolveBackBufferRenderingStep resolves a multi-sampled back buffer (when multi-sampling is used). Default value is true.
Public propertyResolveSuperSampledBackBuffer Gets or sets a Boolean that specifies if this ResolveBackBufferRenderingStep resolves a super-sampled back buffer (when super-sampling is used). Default value is true.
Public propertyTexelOffsetsScale Multiplies the texel offset by this factor. It is used to downsample from bigger textures so that offsets reach bigger area.
Top
Methods
 NameDescription
Public methodClearCustomDestinationBuffer Clears the custom destination buffer. RenderingContext.FinalBackBuffer will be used as destination buffer.
Public methodSaveExecutionTimeStatistics SaveExecutionTimeStatistics is called when we are collecting statistics. The implementation of the method should save or add the elapsedMilliseconds to the corresponding property in the RenderingStatistics class.
(Overrides RenderingStepBaseSaveExecutionTimeStatistics(Double, RenderingStatistics))
Public methodSetCustomDestinationBuffer Sets custom destination buffer that will get the down-sampled texture.
Top
See Also