Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::MultiDrawIndexedAttribs Struct Reference

MultiDraw command attributes. More...

#include <DeviceContext.h>

Public Attributes

Uint32 DrawCount = 0
 The number of draw items to execute.
 
const MultiDrawIndexedItempDrawItems = nullptr
 A pointer to the array of DrawCount draw command items.
 
VALUE_TYPE IndexType = VT_UNDEFINED
 The type of elements in the index buffer.
 
DRAW_FLAGS Flags = DRAW_FLAG_NONE
 Additional flags, see Diligent::DRAW_FLAGS.
 
Uint32 NumInstances = 1
 Number of instances to draw.
 
Uint32 FirstInstanceLocation = 0
 

Detailed Description

MultiDraw command attributes.

Member Data Documentation

◆ FirstInstanceLocation

Uint32 Diligent::MultiDrawIndexedAttribs::FirstInstanceLocation = 0

LOCATION (or INDEX, but NOT the byte offset) in the vertex buffer to start reading instance data from.

◆ IndexType

VALUE_TYPE Diligent::MultiDrawIndexedAttribs::IndexType = VT_UNDEFINED

The type of elements in the index buffer.

Allowed values: VT_UINT16 and VT_UINT32.

◆ NumInstances

Uint32 Diligent::MultiDrawIndexedAttribs::NumInstances = 1

Number of instances to draw.

If more than one instance is specified, instanced draw call will be performed.