Blender  V3.3
Typedefs | Functions
GPU_drawlist.h File Reference

Go to the source code of this file.

Typedefs

typedef struct GPUDrawList GPUDrawList
 

Functions

GPUDrawListGPU_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)
 

Detailed Description

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 Documentation

◆ GPUDrawList

typedef struct GPUDrawList GPUDrawList

Opaque type hiding blender::gpu::DrawList.

Definition at line 1 of file GPU_drawlist.h.

Function Documentation

◆ GPU_draw_list_append()

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().

◆ GPU_draw_list_create()

GPUDrawList* GPU_draw_list_create ( int  length)

◆ GPU_draw_list_discard()

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().

◆ GPU_draw_list_submit()

void GPU_draw_list_submit ( GPUDrawList list)