D3D12_INDIRECT_ARGUMENT_DESC structure

Describes an indirect argument (an indirect parameter), for use with a command signature.

Syntax

typedef struct D3D12_INDIRECT_ARGUMENT_DESC {
  D3D12_INDIRECT_ARGUMENT_TYPE Type;
  union {
    struct {
      UINT Slot;
    } VertexBuffer;
    struct {
      UINT RootParameterIndex;
      UINT DestOffsetIn32BitValues;
      UINT Num32BitValuesToSet;
    } Constant;
    struct {
      UINT RootParameterIndex;
    } ConstantBufferView;
    struct {
      UINT RootParameterIndex;
    } ShaderResourceView;
    struct {
      UINT RootParameterIndex;
    } UnorderedAccessView;
  };
} D3D12_INDIRECT_ARGUMENT_DESC;

Members

Type

A single D3D12_INDIRECT_ARGUMENT_TYPE enumeration constant.

VertexBuffer

VertexBuffer.Slot

Specifies the slot containing the vertex buffer address.

Constant

Constant.RootParameterIndex

Specifies the root index of the constant.

Constant.DestOffsetIn32BitValues

The offset, in 32-bit values, to set the first constant of the group. Supports multi-value constants at a given root index. Root constant entries must be sorted from smallest to largest DestOffsetIn32BitValues.

Constant.Num32BitValuesToSet

The number of 32-bit constants that are set at the given root index. Supports multi-value constants at a given root index.

ConstantBufferView

ConstantBufferView.RootParameterIndex

Specifies the root index of the CBV.

ShaderResourceView

ShaderResourceView.RootParameterIndex

Specifies the root index of the SRV.

UnorderedAccessView

UnorderedAccessView.RootParameterIndex

Specifies the root index of the UAV.

Remarks

Use this structure with the D3D12_COMMAND_SIGNATURE_DESC structure.

Requirements

   
Header d3d12.h

See Also

Core Structures

Example Root Signatures