glsl: Add a new glsl_type::sampler_coordinate_components() function.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 11 Sep 2013 18:14:14 +0000 (11:14 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 12 Sep 2013 05:48:32 +0000 (22:48 -0700)
commit694be9115d43b93610f5386b36117ec9a31ed47c
treeba7158eb8db628768d8dc99a1fcf380501c141c2
parent5eb7ff1175a644ffe3b0f1a75cb235400355f9fb
glsl: Add a new glsl_type::sampler_coordinate_components() function.

This computes the number of components necessary to address a sampler
based on its dimensionality.  It will be useful for texturing built-ins.

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