C# Class VoxelTerrain.RenderTarget

This object is used in post process techniques. Scene can be rendered into its texture.
Mostra file Open project: barograf/VoxelTerrain Class Usage Examples

Public Methods

Method Description
ClearRenderTarget ( SlimDX.Color4 color ) : void

Clears render target texture with specified color.

ClearRenderTarget ( DepthStencilView depthStencilView, SlimDX.Color4 color ) : void

Clears render target and depth stencil target textures with specified color.

GetShaderResourceView ( ) : ShaderResourceView

Returns shader resource view object connected with the texture.

GetUnorderedAccessView ( ) : UnorderedAccessView

Returns unordered access view object connected with the texture.

Initialize ( ) : void

Initializes render target object using remembered settings values.

Initialize ( int width, int height ) : void

Initializes render target object using new width, height and remembered format value.

Initialize ( int width, int height, Format format ) : void

Initializes render target object using specified values. If resources have been created earlier then it will dispose them.

RenderTarget ( SlimDX.Direct3D11.Device graphicsDevice, int width, int height, Format format ) : SlimDX.Direct3D11

Creates render target object used specified values.

SetRenderTarget ( DepthStencilView depthStencilView ) : void

Sets render target as an actual target in output merger.

Method Details

ClearRenderTarget() public method

Clears render target texture with specified color.
public ClearRenderTarget ( SlimDX.Color4 color ) : void
color SlimDX.Color4 Clear color.
return void

ClearRenderTarget() public method

Clears render target and depth stencil target textures with specified color.
public ClearRenderTarget ( DepthStencilView depthStencilView, SlimDX.Color4 color ) : void
depthStencilView DepthStencilView Depth stencil target.
color SlimDX.Color4 Clear color.
return void

GetShaderResourceView() public method

Returns shader resource view object connected with the texture.
public GetShaderResourceView ( ) : ShaderResourceView
return ShaderResourceView

GetUnorderedAccessView() public method

Returns unordered access view object connected with the texture.
public GetUnorderedAccessView ( ) : UnorderedAccessView
return UnorderedAccessView

Initialize() public method

Initializes render target object using remembered settings values.
public Initialize ( ) : void
return void

Initialize() public method

Initializes render target object using new width, height and remembered format value.
public Initialize ( int width, int height ) : void
width int New texture width.
height int New texture height.
return void

Initialize() public method

Initializes render target object using specified values. If resources have been created earlier then it will dispose them.
public Initialize ( int width, int height, Format format ) : void
width int Texture width.
height int Texture height.
format Format Texture format.
return void

RenderTarget() public method

Creates render target object used specified values.
public RenderTarget ( SlimDX.Direct3D11.Device graphicsDevice, int width, int height, Format format ) : SlimDX.Direct3D11
graphicsDevice SlimDX.Direct3D11.Device Virtual adapter used to perform rendering.
width int Texture width.
height int Texture height.
format Format Texture format.
return SlimDX.Direct3D11

SetRenderTarget() public method

Sets render target as an actual target in output merger.
public SetRenderTarget ( DepthStencilView depthStencilView ) : void
depthStencilView DepthStencilView Depth stencil target.
return void