glsl: add glsl_type::uniform_locations() helper function
authorTapani Pälli <tapani.palli@intel.com>
Thu, 5 Jun 2014 04:37:16 +0000 (07:37 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 16 Jun 2014 03:49:59 +0000 (06:49 +0300)
commitdadc3d04f034327b4afeeadf9a860e1b620fab37
treeb1947bb1840d456474a8f56bc82f8d6a315b6644
parentbfe42ddd99e8702e2daf14238966069fd25b6d0e
glsl: add glsl_type::uniform_locations() helper function

This function calculates the number of unique values from
glGetUniformLocation for the elements of the type.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/glsl_types.cpp
src/glsl/glsl_types.h