virtual RenderTarget* CreateRenderTarget(id<MTLTexture> color, id<MTLTexture> depth, id<MTLTexture> stencil); virtual 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 |
id<MTLTexture> color |
The color for the buffer. |
id<MTLTexture> depth |
The color for the buffer. |
id<MTLTexture> stencil |
The 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 newly created render target.