summaryrefslogtreecommitdiffstats
path: root/src/glsl/link_uniform_blocks.cpp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2014-07-16 15:37:10 -0700
committerIan Romanick <ian.d.romanick@intel.com>2014-08-04 14:40:06 -0700
commit47c6fc5b04774737404b55b01cbab5c3baf1c183 (patch)
tree35fb28a683f79f0d476e0fa04f9a3a95cfbf95eb /src/glsl/link_uniform_blocks.cpp
parent46356c46ea9c09cc2eb8dfe753d3b066e698003b (diff)
downloadexternal_mesa3d-47c6fc5b04774737404b55b01cbab5c3baf1c183.zip
external_mesa3d-47c6fc5b04774737404b55b01cbab5c3baf1c183.tar.gz
external_mesa3d-47c6fc5b04774737404b55b01cbab5c3baf1c183.tar.bz2
linker: Add a last_field parameter to various program_resource_visitor methods
I also considered renaming visit_field(const glsl_struct_field *) to entry_record and adding an exit_record method. This would be more similar to the hierarchical visitor. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/glsl/link_uniform_blocks.cpp')
-rw-r--r--src/glsl/link_uniform_blocks.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/link_uniform_blocks.cpp b/src/glsl/link_uniform_blocks.cpp
index 0b1291d..ddd134a 100644
--- a/src/glsl/link_uniform_blocks.cpp
+++ b/src/glsl/link_uniform_blocks.cpp
@@ -68,7 +68,8 @@ private:
}
virtual void visit_field(const glsl_type *type, const char *name,
- bool row_major, const glsl_type *record_type)
+ bool row_major, const glsl_type *record_type,
+ bool last_field)
{
assert(this->index < this->num_variables);