DrawAttribs struct
Defines the draw command attributes.
Contents
This structure is used by IDeviceContext::
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:
| Member | Default value |
|---|---|
| NumVertices | 0 |
| Flags | DRAW_FLAG_NONE |
| NumInstances | 1 |
| StartVertexLocation | 0 |
| FirstInstanceLocation | 0 |