summaryrefslogtreecommitdiffstats
path: root/src/glsl/linker.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/linker.h')
-rw-r--r--src/glsl/linker.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/glsl/linker.h b/src/glsl/linker.h
index 0ad217f841c..95937d4ee87 100644
--- a/src/glsl/linker.h
+++ b/src/glsl/linker.h
@@ -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