Blender V5.3
GPU_primitive.hh File Reference
#include "BLI_assert.hh"
#include "BLI_sys_types.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Enumerations

enum  blender::GPUPrimType : int8_t {
  blender::GPU_PRIM_POINTS , blender::GPU_PRIM_LINES , blender::GPU_PRIM_TRIS , blender::GPU_PRIM_LINE_STRIP ,
  blender::GPU_PRIM_LINE_LOOP , blender::GPU_PRIM_TRI_STRIP , blender::GPU_PRIM_TRI_FAN , blender::GPU_PRIM_LINES_ADJ ,
  blender::GPU_PRIM_TRIS_ADJ , blender::GPU_PRIM_LINE_STRIP_ADJ , blender::GPU_PRIM_NONE
}
enum  blender::GPUPimClass {
  blender::GPU_PRIM_CLASS_NONE = 0 , blender::GPU_PRIM_CLASS_POINT = (1 << 0) , blender::GPU_PRIM_CLASS_LINE = (1 << 1) , blender::GPU_PRIM_CLASS_SURFACE = (1 << 2) ,
  blender::GPU_PRIM_CLASS_ANY = GPU_PRIM_CLASS_POINT | GPU_PRIM_CLASS_LINE | GPU_PRIM_CLASS_SURFACE
}

Functions

int blender::gpu_get_prim_count_from_type (uint vertex_len, GPUPrimType prim_type)
bool blender::is_restart_compatible (GPUPrimType type)

Detailed Description

GPU geometric primitives

Definition in file GPU_primitive.hh.