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:
authorNicholas Bishop <nicholasbishop@gmail.com>2015-01-24 17:09:18 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2015-01-26 18:35:59 +0300
commitfdb55e3719b20ef7e4f47cbd674c9f3aabf4520f (patch)
tree0f8ade432187d0c2591ce1cd86474037e761d273 /source/blender/gpu/intern/gpu_codegen.h
parent6cfc55c4f95f0fdf73a570d199004f5ad6c18fe2 (diff)
Code cleanup: use an enum for GPUNodeLink.image
Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D1026
Diffstat (limited to 'source/blender/gpu/intern/gpu_codegen.h')
-rw-r--r--source/blender/gpu/intern/gpu_codegen.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_codegen.h b/source/blender/gpu/intern/gpu_codegen.h
index 0d60b85bdf5..5c19f259214 100644
--- a/source/blender/gpu/intern/gpu_codegen.h
+++ b/source/blender/gpu/intern/gpu_codegen.h
@@ -61,6 +61,12 @@ typedef enum GPUDataSource {
GPU_SOURCE_ATTRIB
} GPUDataSource;
+typedef enum {
+ GPU_NODE_LINK_IMAGE_NONE = 0,
+ GPU_NODE_LINK_IMAGE_BLENDER = 1,
+ GPU_NODE_LINK_IMAGE_PREVIEW = 2
+} GPUNodeLinkImage;
+
struct GPUNode {
struct GPUNode *next, *prev;
@@ -77,7 +83,7 @@ struct GPUNodeLink {
CustomDataType attribtype;
const char *attribname;
- int image;
+ GPUNodeLinkImage image;
int image_isdata;
int texture;