UpsampleFilter Class |
Namespace: DigitalRune.Graphics.PostProcessing
The UpsampleFilter type exposes the following members.
Name | Description | |
---|---|---|
UpsampleFilter |
Initializes a new instance of the UpsampleFilter class.
|
Name | Description | |
---|---|---|
Dispose |
Releases all resources used by an instance of the PostProcessor class.
(Inherited from PostProcessor.) | |
Dispose(Boolean) |
Releases the unmanaged resources used by an instance of the PostProcessor class
and optionally releases the managed resources.
(Inherited from PostProcessor.) | |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnDisable |
Called when this post-processor is disabled.
(Inherited from PostProcessor.) | |
OnEnable |
Called when this post-processor is enabled.
(Inherited from PostProcessor.) | |
OnProcess |
Called when the post-processor should perform the post-processing.
(Overrides PostProcessorOnProcess(RenderContext).) | |
Process |
Performs the post-processing using the SourceTexture
and the RenderTarget specified in the render context.
(Inherited from PostProcessor.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
DefaultTargetFormat |
Gets or sets the default target format.
(This property is used by the PostProcessorChain).
(Inherited from PostProcessor.) | |
DepthSensitivity |
Bilateral Upsampling: Gets or sets the depth sensitivity.
| |
DepthThreshold |
Nearest-Depth Upsampling: Gets or sets the depth threshold used for edge detection.
| |
Enabled |
Gets or sets a value indicating whether this post-processor is enabled.
(Inherited from PostProcessor.) | |
GraphicsService |
Gets the graphics service.
(Inherited from PostProcessor.) | |
IsDisposed |
Gets a value indicating whether this post-processor has been disposed of.
(Inherited from PostProcessor.) | |
Mode |
Gets or sets the mode that is used for upsampling the low-resolution image.
| |
Name |
Gets or sets the name of the post-processor.
(Inherited from PostProcessor.) | |
RebuildZBuffer |
Gets or sets a value indicating whether to rebuild the Z-buffer.
|
This post-processor reads the low-resolution SourceTexture and increases the resolution to match the RenderTarget.
The UpsampleFilter supports different modes (see property Mode). Point and Linear are basic upsampling modes that do not take the original geometry in account. Bilateraland NearestDepth are "edge-aware" modes that try to maintain the original geometry and prevent blurred edges. The "edge-aware" modes require that the depth buffer is set in the render context (see property GBuffer0) and the low-resolution copy of the depth buffer needs to be stored in renderContext.Data[RenderContextKey.DepthBufferHalf].
Optionally, a SceneTexture can be set in the RenderContext. In this case the input texture is combined (alpha-blended) to the scene texture and the combined result is output by the pixel shader.
Optionally, the property RebuildZBuffer can be set. In this case the depth information of the original scene is output together with the color information in the pixel shader.