Defines the draw command attributes. More...
#include <DeviceContext.h>
Public Member Functions | |
constexpr | DrawAttribs () noexcept |
Initializes the structure members with default values. | |
constexpr | DrawAttribs (Uint32 _NumVertices, DRAW_FLAGS _Flags, Uint32 _NumInstances=1, Uint32 _StartVertexLocation=0, Uint32 _FirstInstanceLocation=0) noexcept |
Initializes the structure with user-specified values. | |
Public Attributes | |
Uint32 | NumVertices = 0 |
The number of vertices to draw. | |
DRAW_FLAGS | Flags = DRAW_FLAG_NONE |
Additional flags, see Diligent::DRAW_FLAGS. | |
Uint32 | NumInstances = 1 |
The number of instances to draw. | |
Uint32 | StartVertexLocation = 0 |
Uint32 | FirstInstanceLocation = 0 |
Defines the draw command attributes.
This structure is used by IDeviceContext::Draw().
|
inlineconstexprnoexcept |
Initializes the structure members with default values.
Default values:
Member | Default value |
---|---|
NumVertices | 0 |
Flags | DRAW_FLAG_NONE |
NumInstances | 1 |
StartVertexLocation | 0 |
FirstInstanceLocation | 0 |
Uint32 Diligent::DrawAttribs::FirstInstanceLocation = 0 |
LOCATION (or INDEX, but NOT the byte offset) in the vertex buffer to start reading instance data from.
Uint32 Diligent::DrawAttribs::NumInstances = 1 |
The number of instances to draw.
If more than one instance is specified, instanced draw call will be performed.
Uint32 Diligent::DrawAttribs::StartVertexLocation = 0 |
LOCATION (or INDEX, but NOT the byte offset) of the first vertex in the vertex buffer to start reading vertices from.