Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

CD3DX12_ROOT_DESCRIPTOR1 structure

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

Syntax

struct CD3DX12_ROOT_DESCRIPTOR1 : public D3D12_ROOT_DESCRIPTOR1{
 CD3DX12_ROOT_DESCRIPTOR1();
 explicit CD3DX12_ROOT_DESCRIPTOR1(const D3D12_ROOT_DESCRIPTOR1 &o);
 CD3DX12_ROOT_DESCRIPTOR1(UINT shaderRegister, UINT registerSpace = 0, D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE);
 void inline Init(UINT shaderRegister, UINT registerSpace = 0, D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE);
 void static inline Init(D3D12_ROOT_DESCRIPTOR1 &table, UINT shaderRegister, UINT registerSpace = 0, D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE);
};

Members

CD3DX12_ROOT_DESCRIPTOR1()

Creates a new, uninitialized, instance of a CD3DX12_ROOT_DESCRIPTOR1.

explicit CD3DX12_ROOT_DESCRIPTOR1(const D3D12_ROOT_DESCRIPTOR1 &o)

Creates a new instance of a CD3DX12_ROOT_DESCRIPTOR1, initialized with the contents of another D3D12_ROOT_DESCRIPTOR1 structure.

CD3DX12_ROOT_DESCRIPTOR1(UINT shaderRegister, UINT registerSpace = 0, D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE)

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

UINT shaderRegister

UINT registerSpace = 0

D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE

inline Init(UINT shaderRegister, UINT registerSpace = 0, D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE)

Specifies a function that initializes the following parameters:

UINT shaderRegister

UINT registerSpace = 0

D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE

static inline Init(D3D12_ROOT_DESCRIPTOR1 &table, UINT shaderRegister, UINT registerSpace = 0, D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE)

Specifies a function that initializes the following parameters:

D3D12_ROOT_DESCRIPTOR1 &table

UINT shaderRegister

UINT registerSpace = 0

D3D12_ROOT_DESCRIPTOR_FLAGS flags = D3D12_ROOT_DESCRIPTOR_FLAG_NONE

Requirements

Requirement Value
Header
D3dx12.h

See also

D3D12_ROOT_DESCRIPTOR1

Helper Structures for D3D12


Feedback

Was this page helpful?

Additional resources