mesa: Add glsl_type::get_scalar_type() function.
authorPaul Berry <stereotype441@gmail.com>
Tue, 25 Oct 2011 23:24:03 +0000 (16:24 -0700)
committerPaul Berry <stereotype441@gmail.com>
Mon, 31 Oct 2011 18:29:14 +0000 (11:29 -0700)
commitfa0066ae2b2d304065ee8d93d9b5ecc8b457425a
tree378dcd82d6904b01ed0f7171b919e7585335c692
parentf40c6b2a992f3ca796826a47743c0c80232d7ab2
mesa: Add glsl_type::get_scalar_type() function.

This function is similar to get_base_type(), but when called on
arrays, it returns the scalar type composing the array.  For example,
glsl_type(vec4[]) => float_type.

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/glsl_types.cpp
src/glsl/glsl_types.h