Blender V4.3
GPU_primitive.hh File Reference
#include "BLI_assert.h"
#include "GPU_common.hh"

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)
 

Detailed Description

GPU geometric primitives

Definition in file GPU_primitive.hh.

Enumeration Type Documentation

◆ 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.

◆ GPUPrimType

Enumerator
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 

Definition at line 16 of file GPU_primitive.hh.

Function Documentation

◆ gpu_get_prim_count_from_type()

◆ is_restart_compatible()