Diligent::DrawIndexedAttribs struct

Defines the indexed draw command attributes.

This structure is used by IDeviceContext::DrawIndexed().

Constructors, destructors, conversion operators

DrawIndexedAttribs() noexcept
Initializes the structure members with default values.
DrawIndexedAttribs(Uint32 _NumIndices, VALUE_TYPE _IndexType, DRAW_FLAGS _Flags, Uint32 _NumInstances = 1, Uint32 _FirstIndexLocation = 0, Uint32 _BaseVertex = 0, Uint32 _FirstInstanceLocation = 0) noexcept
Initializes the structure members with user-specified values.

Public variables

Uint32 NumIndices
The number of indices to draw.
VALUE_TYPE IndexType
The type of elements in the index buffer. Allowed values: VT_UINT16 and VT_UINT32.
DRAW_FLAGS Flags
Additional flags, see Diligent::DRAW_FLAGS.
Uint32 NumInstances
Number of instances to draw. If more than one instance is specified, instanced draw call will be performed.
Uint32 FirstIndexLocation
LOCATION (NOT the byte offset) of the first index in the index buffer to start reading indices from.
Uint32 BaseVertex
A constant which is added to each index before accessing the vertex buffer.
Uint32 FirstInstanceLocation
LOCATION (or INDEX, but NOT the byte offset) in the vertex buffer to start reading instance data from.

Function documentation

Diligent::DrawIndexedAttribs::DrawIndexedAttribs() noexcept

Initializes the structure members with default values.

Default values:

MemberDefault value
NumIndices0
IndexTypeVT_UNDEFINED
FlagsDRAW_FLAG_NONE
NumInstances1
FirstIndexLocation0
BaseVertex0
FirstInstanceLocation0