Blender  V3.3
Public Attributes | List of all members
DRWInstanceData Struct Reference

Public Attributes

struct 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 GPUBatch 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 38 of file draw_instance_data.c.

Member Data Documentation

◆ data_size

size_t DRWInstanceData::data_size

Definition at line 41 of file draw_instance_data.c.

Referenced by drw_instance_data_create().

◆ mempool

BLI_mempool* DRWInstanceData::mempool

◆ next

struct DRWInstanceData* DRWInstanceData::next

◆ used

bool DRWInstanceData::used

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