summaryrefslogtreecommitdiff
path: root/glsl_types.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-04-22 09:47:27 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-04-23 16:12:44 -0700
commitec9e73870cc150adbb3e76762a26c7f51d8aceb4 (patch)
treee0cdcb3fafbb54122348a590e24d17ecc69531eb /glsl_types.h
parent8d3e59f1f399d7c1f7604779f1d62e876c609d9e (diff)
Put static pointers to vec[234]_types along with the static float_type.
Otherwise you have to type a lot of get_instance.
Diffstat (limited to 'glsl_types.h')
-rw-r--r--glsl_types.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/glsl_types.h b/glsl_types.h
index 33b1c98158..c628868301 100644
--- a/glsl_types.h
+++ b/glsl_types.h
@@ -110,6 +110,9 @@ struct glsl_type {
static const glsl_type *const int_type;
static const glsl_type *const uint_type;
static const glsl_type *const float_type;
+ static const glsl_type *const vec2_type;
+ static const glsl_type *const vec3_type;
+ static const glsl_type *const vec4_type;
static const glsl_type *const bool_type;
/*@}*/