Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/gpu/GPU_primitive.h')
-rw-r--r--source/blender/gpu/GPU_primitive.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/source/blender/gpu/GPU_primitive.h b/source/blender/gpu/GPU_primitive.h
index fdb6f380f3b..0f4becc6bff 100644
--- a/source/blender/gpu/GPU_primitive.h
+++ b/source/blender/gpu/GPU_primitive.h
@@ -29,28 +29,28 @@
#include "GPU_common.h"
typedef enum {
- GPU_PRIM_POINTS,
- GPU_PRIM_LINES,
- GPU_PRIM_TRIS,
- GPU_PRIM_LINE_STRIP,
- GPU_PRIM_LINE_LOOP, /* GL has this, Vulkan does not */
- GPU_PRIM_TRI_STRIP,
- GPU_PRIM_TRI_FAN,
-
- GPU_PRIM_LINES_ADJ,
- GPU_PRIM_TRIS_ADJ,
- GPU_PRIM_LINE_STRIP_ADJ,
-
- GPU_PRIM_NONE,
+ GPU_PRIM_POINTS,
+ GPU_PRIM_LINES,
+ GPU_PRIM_TRIS,
+ GPU_PRIM_LINE_STRIP,
+ GPU_PRIM_LINE_LOOP, /* GL has this, Vulkan does not */
+ GPU_PRIM_TRI_STRIP,
+ GPU_PRIM_TRI_FAN,
+
+ GPU_PRIM_LINES_ADJ,
+ GPU_PRIM_TRIS_ADJ,
+ GPU_PRIM_LINE_STRIP_ADJ,
+
+ GPU_PRIM_NONE,
} GPUPrimType;
/* what types of primitives does each shader expect? */
typedef enum {
- 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,
+ 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,
} GPUPrimClass;
GPUPrimClass GPU_primtype_class(GPUPrimType);