diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2015-01-24 15:25:49 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2015-01-26 18:34:39 +0300 |
commit | 8cafa0afa67c2d027fbd241b3cf3959571a43160 (patch) | |
tree | d044018e770f58de9e0f0e56898d19b178ff7e53 /source/blender/gpu/GPU_material.h | |
parent | d1e1fb2239372ecd1e7ec0bb84e4d2c6cb0a1269 (diff) |
Code cleanup: give anomymous enum used for CustomData.type a name
Used this in GPU module to clarify what some "ints" really are.
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D1026
Diffstat (limited to 'source/blender/gpu/GPU_material.h')
-rw-r--r-- | source/blender/gpu/GPU_material.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/gpu/GPU_material.h b/source/blender/gpu/GPU_material.h index 09a5653b1ec..cbbc428b8c4 100644 --- a/source/blender/gpu/GPU_material.h +++ b/source/blender/gpu/GPU_material.h @@ -32,6 +32,7 @@ #ifndef __GPU_MATERIAL_H__ #define __GPU_MATERIAL_H__ +#include "DNA_customdata_types.h" /* for CustomDataType */ #include "DNA_listBase.h" #include "BLI_sys_types.h" /* for bool */ @@ -120,7 +121,7 @@ typedef struct GPUNodeStack { short sockettype; } GPUNodeStack; -GPUNodeLink *GPU_attribute(int type, const char *name); +GPUNodeLink *GPU_attribute(CustomDataType type, const char *name); GPUNodeLink *GPU_uniform(float *num); GPUNodeLink *GPU_dynamic_uniform(float *num, int dynamictype, void *data); GPUNodeLink *GPU_image(struct Image *ima, struct ImageUser *iuser, bool is_data); |