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

Public Member Functions

 XII_DISALLOW_COPY_AND_ASSIGN (xiiInstanceData)
 
 xiiInstanceData (xiiUInt32 uiMaxInstanceCount=1024)
 
void BindResources (xiiSharedPtr< xiiGALCommandList > pCommandList)
 
xiiArrayPtr< xiiPerInstanceData > GetInstanceData (xiiUInt32 uiCount, xiiUInt32 &out_uiOffset)
 
void UpdateInstanceData (xiiSharedPtr< xiiGALCommandList > pCommandList, xiiUInt32 uiCount)
 

Public Attributes

xiiSharedPtr< xiiGALBufferm_pInstanceDataBuffer
 
xiiSharedPtr< xiiGALBufferm_pObjectConstantsBuffer
 

Member Function Documentation

◆ UpdateInstanceData()

void xiiInstanceData::UpdateInstanceData ( xiiSharedPtr< xiiGALCommandList > pCommandList,
xiiUInt32 uiCount )
Todo
Use dynamic buffer and fix the offset calculation not being applied on the GPU.

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