"L. Spiro Engine"
Public Member Functions | Protected Member Functions | Protected Attributes | Friends

lsg::CDirectX11DepthStencilRenderTarget Class Reference

A DirectX 11 depth/stencil render target. More...

#include <LSGDirectX11DepthStencilRenderTarget.h>

Inheritance diagram for lsg::CDirectX11DepthStencilRenderTarget:
lsg::CRenderTargetBase lsg::CRenderTargetInterface lsg::CDepthStencilRenderTarget

List of all members.

Public Member Functions

virtual LSBOOL LSE_CALL Activate (LSUINT32 _ui32Slot)

Protected Member Functions

LSVOID LSE_CALL ResetApi ()
LSBOOL LSE_CALL CreateApiRenderTarget ()
virtual LSBOOL LSE_CALL SetAsDepthStencilRenderTarget () const
virtual LSVOID LSE_CALL EndAsRenderTarget () const

Protected Attributes

ID3D11Texture2D * m_pt2tTexture
ID3D11DepthStencilView * m_pdsvView
ID3D11ShaderResourceView * m_psrvResourceView

Friends

class CDirectX11RenderTargetManager

Detailed Description

A DirectX 11 depth/stencil render target.

Class CDirectX11DepthStencilRenderTarget Description: A DirectX 11 depth/stencil render target.


Member Function Documentation

virtual LSBOOL LSE_CALL lsg::CDirectX11DepthStencilRenderTarget::Activate ( LSUINT32  _ui32Slot) [virtual]

Activate this render target in a given slot.

Parameters:
_ui32SlotSlot in which to place this render target.
Returns:
Returns true if the render target is activated successfully.
LSBOOL LSE_CALL lsg::CDirectX11DepthStencilRenderTarget::CreateApiRenderTarget ( ) [protected]

Create the Direct3D 9 API resource(s).

Returns:
Returns false if the current format is not supported or if there are not enough resources available to perform the operation.
virtual LSVOID LSE_CALL lsg::CDirectX11DepthStencilRenderTarget::EndAsRenderTarget ( ) const [protected, virtual]

End its term as a render target.

Reimplemented from lsg::CRenderTargetInterface.

LSVOID LSE_CALL lsg::CDirectX11DepthStencilRenderTarget::ResetApi ( ) [protected]

Reset the resources related to the Direct3D 9 API.

virtual LSBOOL LSE_CALL lsg::CDirectX11DepthStencilRenderTarget::SetAsDepthStencilRenderTarget ( ) const [protected, virtual]

Activate as a depth/stencil render target.

Returns:
Returns true if it is ready to be used as a render target.

Reimplemented from lsg::CRenderTargetInterface.


Member Data Documentation

ID3D11DepthStencilView* lsg::CDirectX11DepthStencilRenderTarget::m_pdsvView [protected]

The view for this render target, needed in order to access the texture data.

ID3D11ShaderResourceView* lsg::CDirectX11DepthStencilRenderTarget::m_psrvResourceView [protected]

The shader resource view.

The texture containing the surface we use as our render target. We use a texture rather than a plain surface because a plain surface does not copy color keys and cannot be set as a readable texture target.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator