D3D12_ROOT_SIGNATURE_DESC structure
Describes the layout of a root signature version 1.0.
Syntax
typedef struct D3D12_ROOT_SIGNATURE_DESC { UINT NumParameters; const D3D12_ROOT_PARAMETER *pParameters; UINT NumStaticSamplers; const D3D12_STATIC_SAMPLER_DESC *pStaticSamplers; D3D12_ROOT_SIGNATURE_FLAGS Flags; } D3D12_ROOT_SIGNATURE_DESC;
Members
- NumParameters
-
The number of slots in the root signature. This number is also the number of elements in the pParameters array.
- pParameters
-
An array of D3D12_ROOT_PARAMETER structures for the slots in the root signature.
- NumStaticSamplers
-
Specifies the number of static samplers.
- pStaticSamplers
-
Pointer to one or more D3D12_STATIC_SAMPLER_DESC structures.
- Flags
-
A combination of D3D12_ROOT_SIGNATURE_FLAGS-typed values that are combined by using a bitwise OR operation. The resulting value specifies options for the root signature layout.
Remarks
This structure is used by the D3D12SerializeRootSignature function and is returned by the ID3D12RootSignatureDeserializer::GetRootSignatureDesc method.
There is one graphics root signature, and one compute root signature.
Requirements
|
Header |
|
|---|
See also
- CD3DX12_ROOT_SIGNATURE_DESC
- D3D12_ROOT_PARAMETER_TYPE
- D3D12_ROOT_SIGNATURE_DESC1
- Creating a Root Signature
- Core Structures
- Using constants directly in the root signature
- Using descriptors directly in the root signature