Cogs.Rendering
|
Provides render target management functionality. More...
#include <IRenderTargets.h>
Public Member Functions | |
virtual void | annotate (RenderTargetHandle handle, const StringView &name) |
Associate a name with an object for use in graphics debugging. | |
virtual void | annotate (DepthStencilHandle handle, const StringView &name) |
Associate a name with an object for use in graphics debugging. | |
virtual RenderTargetHandle | createRenderTarget (TextureHandle textureHandle) |
Create a render target using the given texture to render into. | |
virtual RenderTargetHandle | createRenderTarget (TextureHandle *textureHandles, const size_t numTextureHandles) |
Create a multi render target (MRT) with using the given textures to render into. | |
virtual RenderTargetHandle | createRenderTarget (const RenderTargetViewDescription *renderTargetViews, const size_t numViews)=0 |
Create a render target using the given view descriptions. | |
virtual RenderTargetHandle | createRenderTarget (const RenderTargetViewDescription *, const size_t, const MultiViewDescription &) |
virtual void | releaseRenderTarget (RenderTargetHandle renderTargetHandle)=0 |
Release the render target with the given renderTargetHandle. | |
virtual DepthStencilHandle | createDepthStencilTarget (const RenderTargetHandle handle)=0 |
Creates a depth/stencil target to back the render target with the given handle. | |
virtual DepthStencilHandle | createDepthStencilTarget (const RenderTargetHandle handle, const TextureHandle textureHandle)=0 |
Creates a depth/stencil target to back the render target with the given handle. | |
virtual DepthStencilHandle | createDepthStencilTarget (const RenderTargetHandle handle, const DepthStencilViewDescription &depthStencilView)=0 |
Creates a depth stencil view using the given description. | |
virtual DepthStencilHandle | createDepthStencilTarget (const RenderTargetHandle, const DepthStencilViewDescription &, const MultiViewDescription &) |
virtual void | releaseDepthStencilTarget (DepthStencilHandle depthStencilHandle)=0 |
Release the depth target with the given depthStencilHandle. | |
virtual DepthStencilStateHandle | loadDepthStencilState (const DepthStencilState &depthStencilState)=0 |
Load a depth stencil state object. | |
virtual void | releaseDepthStencilState (DepthStencilStateHandle handle)=0 |
Release the depth stencil state with the given handle. | |
virtual RasterizerStateHandle | loadRasterizerState (const RasterizerState &rasterizerState)=0 |
Load a rasterizer state object. | |
virtual void | releaseRasterizerState (RasterizerStateHandle handle)=0 |
Release the rasterizer state with the given handle. | |
virtual BlendStateHandle | loadBlendState (const BlendState &blendState)=0 |
Load a blend state object. | |
virtual BlendStateHandle | loadBlendState (const BlendState &blendStateColor, const BlendState &blendStateAlpha) |
Load a blend state object with separate blending for alpha channel. | |
virtual BlendStateHandle | loadBlendState (const BlendState &blendStateColor, const BlendState &blendStateAlpha, const uint32_t flags) |
virtual BlendStateHandle | loadBlendState (const BlendState *blendStateColor, const BlendState *blendStateAlpha, const uint32_t numBlendStates, const uint32_t flags) |
virtual void | releaseBlendState (BlendStateHandle handle)=0 |
Release the blend state with the given handle. | |
virtual void | releaseResources ()=0 |
Release all allocated render target resources. | |
Provides render target management functionality.
|
inlinevirtual |
Associate a name with an object for use in graphics debugging.
|
inlinevirtual |
Associate a name with an object for use in graphics debugging.
|
pure virtual |
Creates a depth/stencil target to back the render target with the given handle.
The dimensions of the render target are matched and a suitable depth format for the graphics device is chosen.
handle | Valid handle to a render target to create depth target backing for. |
|
pure virtual |
Creates a depth stencil view using the given description.
handle | Valid handle to a render target to create depth target backing for. |
depthStencilView | Depth stencil view description. |
|
pure virtual |
Creates a depth/stencil target to back the render target with the given handle.
The texture with the given textureHandle is used as backing for the depth target. The texture must be of a format that supports depth values, and be flagged for use as a depth texture.
handle | Valid handle to a render target to create depth target backing for. |
textureHandle | Valid handle to a texture to use as backing to render depth values to. |
|
inlinevirtual |
References Cogs::Handle_t< DepthStencilTag >::InvalidHandle.
|
inlinevirtual |
References Cogs::Handle_t< RenderTargetTag >::InvalidHandle.
|
pure virtual |
Create a render target using the given view descriptions.
renderTargetViews | Pointer to an array of render target view descriptions. |
numViews | Number of views in the array pointed to by renderTargetViews. |
|
inlinevirtual |
Create a multi render target (MRT) with using the given textures to render into.
textureHandles | Pointer to an array of valid texture handles to textures to use as render textures for the render target. |
numTextureHandles | Number of textures to use as targets in the MRT. |
References createRenderTarget(), Cogs::RenderTargetViewDescription::layerIndex, Cogs::RenderTargetViewDescription::levelIndex, Cogs::RenderTargetViewDescription::numLayers, and Cogs::RenderTargetViewDescription::texture.
|
inlinevirtual |
Create a render target using the given texture to render into.
textureHandle | Valid handle to a texture to use as render texture for the render target. |
References createRenderTarget().
Referenced by createRenderTarget().
|
pure virtual |
Load a blend state object.
blendState | Blend state object to load. |
|
inlinevirtual |
Load a blend state object with separate blending for alpha channel.
blendStateColor | Blend state object for the color channels to load. |
blendStateAlpha | Blend state object for the alpha channel to load. |
References loadBlendState().
Referenced by loadBlendState().
|
inlinevirtual |
References loadBlendState().
Referenced by loadBlendState().
|
inlinevirtual |
References Cogs::Handle_t< Type, Convertible >::NoHandle.
|
pure virtual |
Load a depth stencil state object.
depthStencilState | Depth stencil state object to load. |
|
pure virtual |
Load a rasterizer state object.
rasterizerState | Rasterizer state object to load. |
|
pure virtual |
Release the blend state with the given handle.
handle | Valid handle to a blend state object. |
|
pure virtual |
Release the depth stencil state with the given handle.
handle | Valid handle to a depth stencil state object. |
|
pure virtual |
Release the depth target with the given depthStencilHandle.
depthStencilHandle | Valid handle to a previously created depth/stencil target. |
|
pure virtual |
Release the rasterizer state with the given handle.
handle | Valid handle to a rasterizer state object. |
|
pure virtual |
Release the render target with the given renderTargetHandle.
renderTargetHandle | Valid handle to a previously created render target. |
|
pure virtual |
Release all allocated render target resources.