D3D12_ROOT_DESCRIPTOR structure (d3d12.h)

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 ParameterType 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

Requirement Value
Header d3d12.h

See also

CD3DX12_ROOT_DESCRIPTOR

Core Structures

D3D12_ROOT_DESCRIPTOR1

Using descriptors directly in the root signature