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 /builtin_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 'builtin_types.h')
-rw-r--r-- | builtin_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin_types.h b/builtin_types.h index 73910fd..7f97d6f 100644 --- a/builtin_types.h +++ b/builtin_types.h @@ -66,6 +66,9 @@ static const struct glsl_type builtin_core_types[] = { const glsl_type *const glsl_type::bool_type = & builtin_core_types[0]; const glsl_type *const glsl_type::int_type = & builtin_core_types[4]; const glsl_type *const glsl_type::float_type = & builtin_core_types[8]; +const glsl_type *const glsl_type::vec2_type = & builtin_core_types[9]; +const glsl_type *const glsl_type::vec3_type = & builtin_core_types[10]; +const glsl_type *const glsl_type::vec4_type = & builtin_core_types[11]; const glsl_type *const glsl_type::mat2_type = & builtin_core_types[12]; const glsl_type *const glsl_type::mat3_type = & builtin_core_types[13]; const glsl_type *const glsl_type::mat4_type = & builtin_core_types[14]; |