D3D12_ROOT_DESCRIPTOR structure

Describes descriptors inline in the root signature version 1.0 that appear in shaders.

Syntax

typedef struct D3D12_ROOT_DESCRIPTOR {
  UINT ShaderRegister;
  UINT RegisterSpace;
} D3D12_ROOT_DESCRIPTOR;

Members

ShaderRegister

The shader register.

RegisterSpace

The register space.

Remarks

D3D12_ROOT_DESCRIPTOR is the data type of the Descriptor member of D3D12_ROOT_PARAMETER. Use a D3D12_ROOT_DESCRIPTOR when you set D3D12_ROOT_PARAMETER's SlotType field to the D3D12_ROOT_PARAMETER_TYPE_CBV, D3D12_ROOT_PARAMETER_TYPE_SRV, or D3D12_ROOT_PARAMETER_TYPE_UAV members of D3D12_ROOT_PARAMETER_TYPE.

Requirements

   
Header d3d12.h

See Also

CD3DX12_ROOT_DESCRIPTOR

Core Structures

D3D12_ROOT_DESCRIPTOR1

Using descriptors directly in the root signature