Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_instance_data.c
| Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | typedef struct DRWTempBufferHandle { | ||||
| int *vert_len; | int *vert_len; | ||||
| } DRWTempBufferHandle; | } DRWTempBufferHandle; | ||||
| typedef struct DRWTempInstancingHandle { | typedef struct DRWTempInstancingHandle { | ||||
| /** Copy of geom but with the per-instance attributes. */ | /** Copy of geom but with the per-instance attributes. */ | ||||
| GPUBatch *batch; | GPUBatch *batch; | ||||
| /** Batch containing instancing attributes. */ | /** Batch containing instancing attributes. */ | ||||
| GPUBatch *instancer; | GPUBatch *instancer; | ||||
| /** Callbuffer to be used instead of instancer . */ | /** Callbuffer to be used instead of instancer. */ | ||||
| GPUVertBuf *buf; | GPUVertBuf *buf; | ||||
| /** Original non-instanced batch pointer. */ | /** Original non-instanced batch pointer. */ | ||||
| GPUBatch *geom; | GPUBatch *geom; | ||||
| } DRWTempInstancingHandle; | } DRWTempInstancingHandle; | ||||
| static ListBase g_idatalists = {NULL, NULL}; | static ListBase g_idatalists = {NULL, NULL}; | ||||
| static void instancing_batch_references_add(GPUBatch *batch) | static void instancing_batch_references_add(GPUBatch *batch) | ||||
| ▲ Show 20 Lines • Show All 697 Lines • Show Last 20 Lines | |||||