XII Release 0.1.0
Loading...
Searching...
No Matches
xiiGALMultiDrawIndexedDescription Struct Reference

Describes parameters for issuing a multi-draw call with indexed geometry. More...

#include <CommandList.h>

Public Member Functions

XII_ALWAYS_INLINE xiiGALMultiDrawIndexedDescription ()=default
 Default-initialized indexed multi-draw description.
 
XII_ALWAYS_INLINE xiiGALMultiDrawIndexedDescription (xiiArrayPtr< const xiiGALMultiDrawIndexedItem > pDrawItems, xiiEnum< xiiGALValueType > IndexType, xiiUInt32 uiInstanceCount=1U, xiiUInt32 uiFirstInstanceLocation=0U)
 Constructs an indexed multi-draw description with specified items and parameters.
 

Public Attributes

xiiArrayPtr< const xiiGALMultiDrawIndexedItemm_pDrawItems
 Pointer to indexed draw entries.
 
xiiEnum< xiiGALValueTypem_IndexType = xiiGALValueType::Undefined
 Type of index data.
 
xiiUInt32 m_uiInstanceCount = 1U
 Number of instances to render. If more than one instances are specified, an instanced draw call will be performed.
 
xiiUInt32 m_uiFirstInstanceLocation = 0U
 First instance ID passed to vertex shader.
 

Detailed Description

Describes parameters for issuing a multi-draw call with indexed geometry.

Provides an array of indexed draw items and instance-level information for batched rendering.

See also
xiiGALCommandList::MultiDrawIndexed

Constructor & Destructor Documentation

◆ xiiGALMultiDrawIndexedDescription()

XII_ALWAYS_INLINE xiiGALMultiDrawIndexedDescription::xiiGALMultiDrawIndexedDescription ( xiiArrayPtr< const xiiGALMultiDrawIndexedItem > pDrawItems,
xiiEnum< xiiGALValueType > IndexType,
xiiUInt32 uiInstanceCount = 1U,
xiiUInt32 uiFirstInstanceLocation = 0U )
inline

Constructs an indexed multi-draw description with specified items and parameters.

Parameters
pDrawItems- Pointer to indexed draw item array.
IndexType- Type of index data (e.g. 16-bit or 32-bit).
uiInstanceCount- Number of instances to render. Defaults to 1.
uiFirstInstanceLocation- Instance ID for the first instance.

The documentation for this struct was generated from the following file: