D3D12_RESOURCE_DESC1 structure (d3d12.h)
Describes a resource, such as a texture, including a mip region. This structure is used in several methods.
Syntax
typedef struct D3D12_RESOURCE_DESC1 {
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;
D3D12_MIP_REGION SamplerFeedbackMipRegion;
} D3D12_RESOURCE_DESC1;
Members
Dimension
One member of D3D12_RESOURCE_DIMENSION, specifying the dimensions of the resource (for example, D3D12_RESOURCE_DIMENSION_TEXTURE1D), or whether it is a buffer ((D3D12_RESOURCE_DIMENSION_BUFFER).
Alignment
Specifies the alignment.
Width
Specifies the width of the resource.
Height
Specifies the height of the resource.
DepthOrArraySize
Specifies the depth of the resource, if it is 3D, or the array size if it is an array of 1D or 2D resources.
MipLevels
Specifies the number of MIP levels.
Format
Specifies one member of DXGI_FORMAT.
SampleDesc
Specifies a DXGI_SAMPLE_DESC structure.
Layout
Specifies one member of D3D12_TEXTURE_LAYOUT.
Flags
Bitwise-OR'd flags, as D3D12_RESOURCE_FLAGS enumeration constants.
SamplerFeedbackMipRegion
A D3D12_MIP_REGION struct.
Remarks
For remarks, see D3D12_RESOURCE_DESC.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 Build 20348 |
Minimum supported server | Windows 10 Build 20348 |
Header | d3d12.h |