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:
@@ -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
|
* 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,
|
virtual void visit_field(const glsl_type *type, const char *name,
|
||||||
bool row_major) = 0;
|
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:
|
private:
|
||||||
/**
|
/**
|
||||||
* \param name_length Length of the current name \b not including the
|
* \param name_length Length of the current name \b not including the
|
||||||
|
Reference in New Issue
Block a user