Diligent::DrawAttribs struct

Defines the draw command attributes.

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

Constructors, destructors, conversion operators

DrawAttribs() noexcept
Initializes the structure members with default values.
DrawAttribs(Uint32 _NumVertices, DRAW_FLAGS _Flags, Uint32 _NumInstances = 1, Uint32 _StartVertexLocation = 0, Uint32 _FirstInstanceLocation = 0) noexcept
Initializes the structure with user-specified values.

Public variables

Uint32 NumVertices
The number of vertices to draw.
DRAW_FLAGS Flags
Additional flags, see Diligent::DRAW_FLAGS.
Uint32 NumInstances
The number of instances to draw. If more than one instance is specified, instanced draw call will be performed.
Uint32 StartVertexLocation
LOCATION (or INDEX, but NOT the byte offset) of the first vertex in the vertex buffer to start reading vertices from.
Uint32 FirstInstanceLocation
LOCATION (or INDEX, but NOT the byte offset) in the vertex buffer to start reading instance data from.

Function documentation

Diligent::DrawAttribs::DrawAttribs() noexcept

Initializes the structure members with default values.

Default values:

MemberDefault value
NumVertices0
FlagsDRAW_FLAG_NONE
NumInstances1
StartVertexLocation0
FirstInstanceLocation0