Describes a resource such as a texture.
typedef struct D3D12XBOX_RESOURCE_DESC {
D3D12_RESOURCE_DIMENSION Dimension;
UINT64 Alignment;
UINT64 Width;
UINT Height;
UINT16 DepthOrArraySize;
UINT16 MipLevels;
DXGI_FORMAT Format;
DXGI_SAMPLE_DESC SampleDesc;
D3D12_TEXTURE_LAYOUT Layout;
D3D12_RESOURCE_FLAGS Flags;
D3D12XBOX_DCC_OPTIONS DccOptions;
} D3D12XBOX_RESOURCE_DESC;
Dimension
One member of D3D12_RESOURCE_DIMENSION, specifying the dimensions of the resource (for example, D3D12_RESOURCE_DIMENSION_TEXTURE1D), or whether its a buffer (D3D12_RESOURCE_DIMENSION_BUFFER).
Alignment
Specifies the alignment.
Width
The width of the resource.
Height
The height of the resource.
DepthOrArraySize
The depth of the resource if its three-dimensional (3D), or the array size if its an array of one-dimensional (1D) or two-dimensional (2D) resources.
MipLevels
The number of MIP levels.
Format
One member of DXGI_FORMAT.
SampleDesc
Multi-sampling configuration of the resource. Configuration parameters are defined by the DXGI_SAMPLE_DESC structure.
Layout
One member of D3D12_TEXTURE_LAYOUT.
Flags
Flags that further describe the resource. Valid flags are defined by the D3D12_RESOURCE_FLAGS enumeration.
DccOptions
DCC configuration of the resource. Configuration options are defined by the D3D12XBOX_DCC_OPTIONS structure.
Header: Declared in d3d12_x.h.
Library: Use d3d12_x.h.