virtual Render::RenderTarget* CreateRenderTarget(ID3D1x(View)* pRenderTarget, ID3D1x(View)* pDepthStencil); virtual Render::RenderTarget* CreateRenderTarget(Render::Texture* texture, bool needsStencil);
CreateRenderTarget creates a render target. Note that we cannot render to textures which have multiple HW representations.
Parameters |
Description |
ID3D1x(View)* pRenderTarget |
The render target. |
ID3D1x(View)* pDepthStencil |
Depth stencil buffer. |
Render::Texture* texture |
The texture associated with the render target. |
bool needsStencil |
A value of true allocates an internal depth/stencil buffer. |
Returns the created render target.