Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_instance_data.h
| Show All 10 Lines | |||||
| #include "BLI_sys_types.h" | #include "BLI_sys_types.h" | ||||
| #include "GPU_batch.h" | #include "GPU_batch.h" | ||||
| #define MAX_INSTANCE_DATA_SIZE 64 /* Can be adjusted for more */ | #define MAX_INSTANCE_DATA_SIZE 64 /* Can be adjusted for more */ | ||||
| #define DRW_BUFFER_VERTS_CHUNK 128 | #define DRW_BUFFER_VERTS_CHUNK 128 | ||||
| #ifdef __cplusplus | |||||
| extern "C" { | |||||
| #endif | |||||
| struct GHash; | struct GHash; | ||||
| struct GPUUniformAttrList; | struct GPUUniformAttrList; | ||||
| typedef struct DRWInstanceData DRWInstanceData; | typedef struct DRWInstanceData DRWInstanceData; | ||||
| typedef struct DRWInstanceDataList DRWInstanceDataList; | typedef struct DRWInstanceDataList DRWInstanceDataList; | ||||
| typedef struct DRWSparseUniformBuf DRWSparseUniformBuf; | typedef struct DRWSparseUniformBuf DRWSparseUniformBuf; | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | |||||
| /* Uniform attribute UBO management. */ | /* Uniform attribute UBO management. */ | ||||
| struct GHash *DRW_uniform_attrs_pool_new(void); | struct GHash *DRW_uniform_attrs_pool_new(void); | ||||
| void DRW_uniform_attrs_pool_flush_all(struct GHash *table); | void DRW_uniform_attrs_pool_flush_all(struct GHash *table); | ||||
| void DRW_uniform_attrs_pool_clear_all(struct GHash *table); | void DRW_uniform_attrs_pool_clear_all(struct GHash *table); | ||||
| struct DRWSparseUniformBuf *DRW_uniform_attrs_pool_find_ubo(struct GHash *table, | struct DRWSparseUniformBuf *DRW_uniform_attrs_pool_find_ubo(struct GHash *table, | ||||
| const struct GPUUniformAttrList *key); | const struct GPUUniformAttrList *key); | ||||
| #ifdef __cplusplus | |||||
| } | |||||
| #endif | |||||