Blender
V3.3
|
Go to the source code of this file.
Typedefs | |
typedef struct GPUDrawList | GPUDrawList |
Functions | |
GPUDrawList * | GPU_draw_list_create (int length) |
void | GPU_draw_list_discard (GPUDrawList *list) |
void | GPU_draw_list_append (GPUDrawList *list, GPUBatch *batch, int i_first, int i_count) |
void | GPU_draw_list_submit (GPUDrawList *list) |
GPUDrawList is an API to do lots of similar draw-calls very fast using multi-draw-indirect. There is a fallback if the feature is not supported.
Definition in file GPU_drawlist.h.
typedef struct GPUDrawList GPUDrawList |
Opaque type hiding blender::gpu::DrawList.
Definition at line 1 of file GPU_drawlist.h.
void GPU_draw_list_append | ( | GPUDrawList * | list, |
GPUBatch * | batch, | ||
int | i_first, | ||
int | i_count | ||
) |
Definition at line 30 of file gpu_drawlist.cc.
References blender::gpu::DrawList::append(), batch, and blender::gpu::unwrap().
Referenced by draw_indirect_call().
GPUDrawList* GPU_draw_list_create | ( | int | length | ) |
Definition at line 18 of file gpu_drawlist.cc.
References blender::gpu::GPUBackend::drawlist_alloc(), blender::gpu::GPUBackend::get(), and blender::gpu::wrap().
Referenced by drw_manager_init().
void GPU_draw_list_discard | ( | GPUDrawList * | list | ) |
Definition at line 24 of file gpu_drawlist.cc.
References blender::gpu::unwrap().
Referenced by DRW_engines_free().
void GPU_draw_list_submit | ( | GPUDrawList * | list | ) |
Definition at line 36 of file gpu_drawlist.cc.
References blender::gpu::DrawList::submit(), and blender::gpu::unwrap().
Referenced by draw_call_batching_flush(), and draw_indirect_call().