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 15:58:19 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2015-01-26 18:35:40 +0300
commitd1f88c05aa4a02565c93c1524962c85fdd041c5f (patch)
treed2c3bbed2f198402e79f74579c43866c2c3522bc /source/blender/gpu/intern/gpu_codegen.h
parenta59e590e7f113facca2fbee96529d93c781472ac (diff)
Code cleanup: retype various fields/parameters from int to GPUType
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.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/source/blender/gpu/intern/gpu_codegen.h b/source/blender/gpu/intern/gpu_codegen.h
index abc5650059d..4091db8be11 100644
--- a/source/blender/gpu/intern/gpu_codegen.h
+++ b/source/blender/gpu/intern/gpu_codegen.h
@@ -55,7 +55,7 @@ struct PreviewImage;
typedef struct GPUFunction {
char name[MAX_FUNCTION_NAME];
- int paramtype[MAX_PARAMETER];
+ GPUType paramtype[MAX_PARAMETER];
int paramqual[MAX_PARAMETER];
int totparam;
} GPUFunction;
@@ -104,7 +104,7 @@ struct GPUNodeLink {
int dynamic;
int dynamictype;
- int type;
+ GPUType type;
/* Refcount */
int users;
@@ -121,7 +121,7 @@ typedef struct GPUOutput {
struct GPUOutput *next, *prev;
GPUNode *node;
- int type; /* data type = length of vector/matrix */
+ GPUType type; /* data type = length of vector/matrix */
GPUNodeLink *link; /* output link */
int id; /* unique id as created by code generator */
} GPUOutput;
@@ -131,7 +131,7 @@ typedef struct GPUInput {
GPUNode *node;
- int type; /* datatype */
+ GPUType type; /* datatype */
int source; /* data source */
int id; /* unique id as created by code generator */
@@ -140,7 +140,7 @@ typedef struct GPUInput {
int bindtex; /* input is responsible for binding the texture? */
int definetex; /* input is responsible for defining the pixel? */
int textarget; /* GL_TEXTURE_* */
- int textype; /* datatype */
+ GPUType textype; /* datatype */
struct Image *ima; /* image */
struct ImageUser *iuser;/* image user */
@@ -178,7 +178,8 @@ struct GPUPass {
typedef struct GPUPass GPUPass;
GPUPass *GPU_generate_pass(ListBase *nodes, struct GPUNodeLink *outlink,
- struct GPUVertexAttribs *attribs, int *builtin, int type, const char *name);
+ struct GPUVertexAttribs *attribs, int *builtin,
+ const GPUMatType type, const char *name);
struct GPUShader *GPU_pass_shader(GPUPass *pass);