The basic description of a 2 dimensional (2D) target is the width, height, the sample count, and the raster format.
Cube maps, and generalized arrays of targets can be specified by providing an array (slice) count which is greater than zero. A "slice" is logically equivalent to a 2D render target.
If multiple slices are specified, then an additional flag is required to distinguish between a general array of 2D targets and a one which forms a cube map.
Parameters
[in]
name
Name of the target description
[in]
width
Width in pixels
[in]
height
Height in pixels
[in]
multiSampleCount
Number of samples for a multisampled anti-aliased (MSAA) target. A value of 1 indicates no multisampling.
[in]
rasterFormat
Raster / pixel format of the target.
[in]
arraySliceCount
The number of array slices. A value of 1 means a single 2D target.
[in]
isCubeMap
A true value indicates that the target is a cube map. In this case the arraySliceCount is set to be 6 in the constructor. The argument is ignored if the number of array slices is not equal to 6.
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.