C# Class VoxelTerrain.RenderTarget

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

Méthodes publiques

Méthode 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 méthode

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

ClearRenderTarget() public méthode

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.
Résultat void

GetShaderResourceView() public méthode

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

GetUnorderedAccessView() public méthode

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

Initialize() public méthode

Initializes render target object using remembered settings values.
public Initialize ( ) : void
Résultat void

Initialize() public méthode

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.
Résultat void

Initialize() public méthode

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.
Résultat void

RenderTarget() public méthode

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.
Résultat SlimDX.Direct3D11

SetRenderTarget() public méthode

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