Blender  V2.93
GPU_primitive.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2016 by Mike Erwin.
17  * All rights reserved.
18  */
19 
26 #pragma once
27 
28 #include "GPU_common.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 typedef enum {
39  GPU_PRIM_LINE_LOOP, /* GL has this, Vulkan does not */
42 
46 
48 } GPUPrimType;
49 
50 /* what types of primitives does each shader expect? */
51 typedef enum {
54  GPU_PRIM_CLASS_LINE = (1 << 1),
57 } GPUPrimClass;
58 
65 #ifdef __cplusplus
66 }
67 #endif
GPUPrimType
Definition: GPU_primitive.h:34
@ GPU_PRIM_TRI_FAN
Definition: GPU_primitive.h:41
@ GPU_PRIM_LINE_LOOP
Definition: GPU_primitive.h:39
@ GPU_PRIM_LINE_STRIP_ADJ
Definition: GPU_primitive.h:45
@ GPU_PRIM_TRIS_ADJ
Definition: GPU_primitive.h:44
@ GPU_PRIM_NONE
Definition: GPU_primitive.h:47
@ GPU_PRIM_LINES
Definition: GPU_primitive.h:36
@ GPU_PRIM_POINTS
Definition: GPU_primitive.h:35
@ GPU_PRIM_LINES_ADJ
Definition: GPU_primitive.h:43
@ GPU_PRIM_LINE_STRIP
Definition: GPU_primitive.h:38
@ GPU_PRIM_TRI_STRIP
Definition: GPU_primitive.h:40
@ GPU_PRIM_TRIS
Definition: GPU_primitive.h:37
GPUPrimClass
Definition: GPU_primitive.h:51
@ GPU_PRIM_CLASS_NONE
Definition: GPU_primitive.h:52
@ GPU_PRIM_CLASS_POINT
Definition: GPU_primitive.h:53
@ GPU_PRIM_CLASS_LINE
Definition: GPU_primitive.h:54
@ GPU_PRIM_CLASS_SURFACE
Definition: GPU_primitive.h:55
@ GPU_PRIM_CLASS_ANY
Definition: GPU_primitive.h:56