Blender V4.3
DRWInstanceData Struct Reference

Public Attributes

DRWInstanceDatanext
 
bool used
 
size_t data_size
 
BLI_mempoolmempool
 

Detailed Description

DRW Instance Data Manager This is a special memory manager that keeps memory blocks ready to send as VBO data in one continuous allocation. This way we avoid feeding #gpu::Batch each instance data one by one and unnecessary memcpy. Since we lose which memory block was used each DRWShadingGroup we need to redistribute them in the same order/size to avoid to realloc each frame. This is why #DRWInstanceDatas are sorted in a list for each different data size.

Definition at line 39 of file draw_instance_data.cc.

Member Data Documentation

◆ data_size

size_t DRWInstanceData::data_size

Definition at line 42 of file draw_instance_data.cc.

Referenced by drw_instance_data_create().

◆ mempool

◆ next

◆ used


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