![]() |
ezEngine
Release 25.03
|
Stores a couple of ezPerInstanceData structs inside a buffer. Used to do instanced rendering. More...
#include <InstanceDataProvider.h>
Public Member Functions | |
EZ_DISALLOW_COPY_AND_ASSIGN (ezInstanceData) | |
ezInstanceData (ezUInt32 uiMaxInstanceCount=1024, bool bTransient=true) | |
void | BindResources (ezRenderContext *pRenderContext) |
ezArrayPtr< ezPerInstanceData > | GetInstanceData (ezRenderContext *pRenderContext, ezUInt32 uiCount, ezUInt32 &out_uiOffset) |
void | UpdateInstanceData (ezRenderContext *pRenderContext, ezUInt32 uiCount) |
Public Attributes | |
ezGALBufferPool | m_InstanceDataBuffer |
ezConstantBufferStorageHandle | m_hConstantBuffer |
Stores a couple of ezPerInstanceData structs inside a buffer. Used to do instanced rendering.
ezInstanceData::ezInstanceData | ( | ezUInt32 | uiMaxInstanceCount = 1024 , |
bool | bTransient = true |
||
) |
Constructor.
uiMaxInstanceCount | How many instances this object can represent. |
bTransient | If true, data will not be preserved across frames, requiring re-upload every frame. |