CD3DX12_ROOT_DESCRIPTOR structure

A helper structure to enable easy initialization of a D3D12_ROOT_DESCRIPTOR structure.

Syntax

struct CD3DX12_ROOT_DESCRIPTOR  : public D3D12_ROOT_DESCRIPTOR{
       CD3DX12_ROOT_DESCRIPTOR();
       explicit CD3DX12_ROOT_DESCRIPTOR(const D3D12_ROOT_DESCRIPTOR &o);
       CD3DX12_ROOT_DESCRIPTOR(UINT shaderRegister, UINT registerSpace = 0);
  void inline Init(UINT shaderRegister, UINT registerSpace = 0);
  void static inline Init(D3D12_ROOT_DESCRIPTOR &table, UINT shaderRegister, UINT registerSpace = 0);
};

Members

CD3DX12_ROOT_DESCRIPTOR()

Creates a new, uninitialized, instance of a CD3DX12_ROOT_DESCRIPTOR.

explicit CD3DX12_ROOT_DESCRIPTOR(const D3D12_ROOT_DESCRIPTOR &o)

Creates a new instance of a CD3DX12_ROOT_DESCRIPTOR, initialized with the contents of another D3D12_ROOT_DESCRIPTOR structure.

CD3DX12_ROOT_DESCRIPTOR(UINT shaderRegister, UINT registerSpace = 0)

Creates a new instance of a CD3DX12_ROOT_DESCRIPTOR, initializing the following parameters:

UINT shaderRegister

(opt) UINT registerSpace = 0

inline Init(UINT shaderRegister, UINT registerSpace = 0)

Specifies a function that initializes the following parameters:

UINT shaderRegister

(opt) UINT registerSpace = 0

static inline Init(D3D12_ROOT_DESCRIPTOR &table, UINT shaderRegister, UINT registerSpace = 0)

Specifies a function that initializes the following parameters:

D3D12_ROOT_DESCRIPTOR &table

UINT shaderRegister

(opt) UINT registerSpace = 0

Requirements

Requirement Value
Header
D3dx12.h

See also

D3D12_ROOT_DESCRIPTOR

Helper Structures for D3D12