glsl: Add new uniform_field_visitor::visit_field variant

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Carl Worth <cworth@cworth.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Ian Romanick
2013-01-21 22:49:39 -05:00
parent 141e9d42f5
commit 9a204bb9f6
2 changed files with 17 additions and 0 deletions

View File

@@ -95,6 +95,16 @@ protected:
virtual void visit_field(const glsl_type *type, const char *name,
bool row_major) = 0;
/**
* Visit a record before visiting its fields
*
* For structures-of-structures or interfaces-of-structures, this visits
* the inner structure before visiting its fields.
*
* The default implementation does nothing.
*/
virtual void visit_field(const glsl_struct_field *field);
private:
/**
* \param name_length Length of the current name \b not including the