mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 06:40:11 +01:00
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:
parent
141e9d42f5
commit
9a204bb9f6
2 changed files with 17 additions and 0 deletions
|
|
@ -113,6 +113,13 @@ uniform_field_visitor::recursion(const glsl_type *t, char **name,
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
uniform_field_visitor::visit_field(const glsl_struct_field *field)
|
||||
{
|
||||
(void) field;
|
||||
/* empty */
|
||||
}
|
||||
|
||||
/**
|
||||
* Class to help calculate the storage requirements for a set of uniforms
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue