diff options
author | Eric Anholt <eric@anholt.net> | 2010-04-22 09:47:27 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-04-23 16:12:44 -0700 |
commit | ec9e73870cc150adbb3e76762a26c7f51d8aceb4 (patch) | |
tree | e0cdcb3fafbb54122348a590e24d17ecc69531eb /glsl_types.h | |
parent | 8d3e59f1f399d7c1f7604779f1d62e876c609d9e (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.h | 3 |
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; /*@}*/ |