DrawIndexedAttribs struct
Defines the indexed draw command attributes.
Contents
This structure is used by IDeviceContext::
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:
| Member | Default value |
|---|---|
| NumIndices | 0 |
| IndexType | VT_UNDEFINED |
| Flags | DRAW_FLAG_NONE |
| NumInstances | 1 |
| FirstIndexLocation | 0 |
| BaseVertex | 0 |
| FirstInstanceLocation | 0 |