|
Blender V4.3
|
Go to the source code of this file.
Enumerations | |
| enum | GPUPrimType { GPU_PRIM_POINTS , GPU_PRIM_LINES , GPU_PRIM_TRIS , GPU_PRIM_LINE_STRIP , GPU_PRIM_LINE_LOOP , GPU_PRIM_TRI_STRIP , GPU_PRIM_TRI_FAN , GPU_PRIM_LINES_ADJ , GPU_PRIM_TRIS_ADJ , GPU_PRIM_LINE_STRIP_ADJ , GPU_PRIM_NONE } |
| enum | GPUPimClass { GPU_PRIM_CLASS_NONE = 0 , GPU_PRIM_CLASS_POINT = (1 << 0) , GPU_PRIM_CLASS_LINE = (1 << 1) , GPU_PRIM_CLASS_SURFACE = (1 << 2) , GPU_PRIM_CLASS_ANY = GPU_PRIM_CLASS_POINT | GPU_PRIM_CLASS_LINE | GPU_PRIM_CLASS_SURFACE } |
Functions | |
| int | gpu_get_prim_count_from_type (uint vertex_len, GPUPrimType prim_type) |
| bool | is_restart_compatible (GPUPrimType type) |
GPU geometric primitives
Definition in file GPU_primitive.hh.
| enum GPUPimClass |
| Enumerator | |
|---|---|
| GPU_PRIM_CLASS_NONE | |
| GPU_PRIM_CLASS_POINT | |
| GPU_PRIM_CLASS_LINE | |
| GPU_PRIM_CLASS_SURFACE | |
| GPU_PRIM_CLASS_ANY | |
Definition at line 35 of file GPU_primitive.hh.
| enum GPUPrimType |
Definition at line 16 of file GPU_primitive.hh.
|
inline |
Definition at line 43 of file GPU_primitive.hh.
References BLI_assert, BLI_assert_unreachable, GPU_PRIM_LINE_LOOP, GPU_PRIM_LINE_STRIP, GPU_PRIM_LINE_STRIP_ADJ, GPU_PRIM_LINES, GPU_PRIM_LINES_ADJ, GPU_PRIM_POINTS, GPU_PRIM_TRI_FAN, GPU_PRIM_TRI_STRIP, GPU_PRIM_TRIS, and GPU_PRIM_TRIS_ADJ.
Referenced by blender::draw::command::DrawMultiBuf::bind(), and blender::gpu::MTLImmediate::end().
|
inline |
Definition at line 93 of file GPU_primitive.hh.
References GPU_PRIM_LINE_LOOP, GPU_PRIM_LINE_STRIP, GPU_PRIM_LINE_STRIP_ADJ, GPU_PRIM_LINES, GPU_PRIM_LINES_ADJ, GPU_PRIM_NONE, GPU_PRIM_POINTS, GPU_PRIM_TRI_FAN, GPU_PRIM_TRI_STRIP, GPU_PRIM_TRIS, and GPU_PRIM_TRIS_ADJ.
Referenced by GPU_indexbuf_init_ex().