MRenderTargetDescription Class Reference
#include <MRenderTargetManager.h>
Class which provides a description of a hardware render target The name is the unique identifier for a render target.
blast2Cmd/blast2Cmd.cpp , dx11Shader/dx11Shader.cpp , hwApiTextureTest/hwRendererHelper.cpp , hwApiTextureTest/hwRendererHelperDX.cpp , hwApiTextureTest/hwRendererHelperGL.cpp , viewDX11DeviceAccess/viewDX11DeviceAccess.cpp , viewRenderOverride/viewRenderOverride.cpp , viewRenderOverride/viewRenderOverride.h , viewRenderOverrideMRT/viewRenderOverrideMRT.cpp , viewRenderOverrideMRT/viewRenderOverrideMRT.h , viewRenderOverridePostColor/viewRenderOverridePostColor.cpp , and viewRenderOverridePostColor/viewRenderOverridePostColor.h .
Query the name identifier for the target description.
Returns Identifier name
unsigned int width
(
)
const
Query the width of a 2D render target slice.
Returns Width value
unsigned int height
(
)
const
Query the height of a 2D render target slice.
Returns Height value
unsigned int multiSampleCount
(
)
const
Query the multi-sample count defined by the description.
Returns Sample value
Query the raster format defined by the description.
Returns The raster format.
unsigned int arraySliceCount
(
)
const
Query the number of array slices defined by the description.
Returns The slice count
Query whether this is a cube map target.
Returns True if the target describes a cubemap.
bool allowsUnorderedAccess
(
)
const
void setName
(
const MString &
name )
Set name of the target.
Parameters
void setWidth
(
unsigned int
val )
Set width of the target.
Parameters
void setHeight
(
unsigned int
val )
Set height of the target.
Parameters
void setMultiSampleCount
(
unsigned int
val )
Set multisample count of the target.
Parameters
[in] val Sample count to set.
Set the raster format of the target.
Parameters
void setArraySliceCount
(
unsigned int
val )
Set array slice count of the target.
Parameters
[in] val Slice count to set.
void setIsCubeMap
(
bool
val )
Set cube map flag for the target.
Parameters
[in] val Cube map flag to set.
void setAllowsUnorderedAccess
(
bool
val )
Set the flag for unordered data access for the target.
This indicates that read and write access to the target's data from multiple threads is supported. For example, this allows pixel and compute shaders running in parallel to have the same unordered access targets bound.
Parameters
Determine if another target with a given description is 'compatible' with a target using this description.
Compatibility implies that the targets can be used together when specifying multiple render targets.
The general minimum requirements are that the dimensions and multisampling properties are identical. Neither target can be a depth target.
Parameters
[in] desc Description to compare with
Returns false if incompatible.
The documentation for this class was generated from the following files:
MRenderTargetManager.h
MRenderTargetManager.cpp