glsl: Make bvec and ivec types accessible without using get_instance.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 26 Jul 2012 06:07:16 +0000 (23:07 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 30 Jul 2012 22:14:09 +0000 (15:14 -0700)
commit13cb99dc73f9337358c92412aefa918c2ec16431
treea2b3abe57e90efadeccb19683adf3424a0c827a4
parentcd0949eb2869ec37b135fdff2110090008bbcff6
glsl: Make bvec and ivec types accessible without using get_instance.

It's more convenient to use shortcuts like glsl_type::bvec2_type than
the longwinded glsl_type::get_instance(GLSL_TYPE_BOOL, 2, 1).

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Olivier Galibert <galibert@pobox.com>
src/glsl/builtin_types.h
src/glsl/glsl_types.h