D3D12_DRAW_INDEXED_ARGUMENTS structure (d3d12.h)

Describes parameters for drawing indexed instances.

Syntax

typedef struct D3D12_DRAW_INDEXED_ARGUMENTS {
  UINT IndexCountPerInstance;
  UINT InstanceCount;
  UINT StartIndexLocation;
  INT  BaseVertexLocation;
  UINT StartInstanceLocation;
} D3D12_DRAW_INDEXED_ARGUMENTS;

Members

IndexCountPerInstance

The number of indices read from the index buffer for each instance.

InstanceCount

The number of instances to draw.

StartIndexLocation

The location of the first index read by the GPU from the index buffer.

BaseVertexLocation

A value added to each index before reading a vertex from the vertex buffer.

StartInstanceLocation

A value added to each index before reading per-instance data from a vertex buffer.

Remarks

The members of this structure serve the same purpose as the parameters of DrawIndexedInstanced.

Requirements

Requirement Value
Header d3d12.h

See also

Core Structures