RenderTargetData::ReplaceDepthStencilBuffer

RenderTargetData::ReplaceDepthStencilBuffer
virtual bool ReplaceDepthStencilBuffer(DepthStencilBuffer* pdsb);
Description

Replaces the depth stencil buffer used with the render target so as to allow allocating depth/stencil buffer on demand.

Parameters
Parameters 
Description 
DepthStencilBuffer* pdsb 
The depth stencil buffer to replace with. 
Return Value

Returns true if the depth/stencil buffer is replaced and false otherwise.