編集

次の方法で共有


CD3DX12_ROOT_CONSTANTS structure

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

Syntax

struct CD3DX12_ROOT_CONSTANTS  : public D3D12_ROOT_CONSTANTS{
       CD3DX12_ROOT_CONSTANTS();
       explicit CD3DX12_ROOT_CONSTANTS(const D3D12_ROOT_CONSTANTS &o);
       CD3DX12_ROOT_CONSTANTS(UINT num32BitValues, UINT shaderRegister, UINT registerSpace = 0);
  void inline Init(UINT num32BitValues, UINT shaderRegister, UINT registerSpace = 0);
  void static inline Init(D3D12_ROOT_CONSTANTS &rootConstants, UINT num32BitValues, UINT shaderRegister, UINT registerSpace = 0);
};

Members

CD3DX12_ROOT_CONSTANTS()

Creates a new, uninitialized, instance of a CD3DX12_ROOT_CONSTANTS.

explicit CD3DX12_ROOT_CONSTANTS(const D3D12_ROOT_CONSTANTS &o)

Creates a new instance of a CD3DX12_ROOT_CONSTANTS, initialized with the contents of another D3D12_ROOT_CONSTANTS structure.

CD3DX12_ROOT_CONSTANTS(UINT num32BitValues, UINT shaderRegister, UINT registerSpace = 0)

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

UINT num32BitValues

UINT shaderRegister

(opt) UINT registerSpace = 0

inline Init(UINT num32BitValues, UINT shaderRegister, UINT registerSpace = 0)

Specifies a function that initializes the following parameters:

UINT num32BitValues

UINT shaderRegister

(opt) UINT registerSpace = 0

static inline Init(D3D12_ROOT_CONSTANTS &rootConstants, UINT num32BitValues, UINT shaderRegister, UINT registerSpace = 0)

Specifies a function that initializes the following parameters:

D3D12_ROOT_CONSTANTS &rootConstants

UINT num32BitValues

UINT shaderRegister

(opt) UINT registerSpace = 0

Requirements

Requirement Value
Header
D3dx12.h

See also

D3D12_ROOT_CONSTANTS

Helper Structures for D3D12