summaryrefslogtreecommitdiff
path: root/builtin_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 /builtin_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 'builtin_types.h')
-rw-r--r--builtin_types.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin_types.h b/builtin_types.h
index 73910fd4af..7f97d6fa86 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];