Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
Describes constants inline in the root signature that appear in shaders as one constant buffer.
Syntax
typedef struct D3D12_ROOT_CONSTANTS {
UINT ShaderRegister;
UINT RegisterSpace;
UINT Num32BitValues;
} D3D12_ROOT_CONSTANTS;
Members
ShaderRegister
The shader register.
RegisterSpace
The register space.
Num32BitValues
The number of constants that occupy a single shader slot (these constants appear like a single constant buffer). All constants occupy a single root signature bind slot.
Remarks
Refer to Resource Binding in HLSL for more information on shader registers and spaces.
D3D12_ROOT_CONSTANTS is the data type of the Constants member of D3D12_ROOT_PARAMETER. Use a D3D12_ROOT_CONSTANTS when you set D3D12_ROOT_PARAMETER's SlotType field to the D3D12_ROOT_PARAMETER_TYPE_32BIT_CONSTANTS member of D3D12_ROOT_PARAMETER_TYPE.
Requirements
| Requirement | Value |
|---|---|
| Header | d3d12.h |