diff options
author | Timothy Arceri <[email protected]> | 2014-01-23 23:16:41 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2014-01-23 23:31:10 +1100 |
commit | bfb48750f08223fdf1c2d7bf4db1bba5a1088a7c (patch) | |
tree | 35708cca3bc36c503bce20aebe577b55b78846ed /src/glsl/ast_array_index.cpp | |
parent | 72288e0c7b7ec769da71fbaf124ec4ee8be7577b (diff) |
glsl: Add ARB_arrays_of_arrays support to yacc definition and ast
Adds array specifier object to hold array information
Signed-off-by: Timothy Arceri <[email protected]>
Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/glsl/ast_array_index.cpp')
-rw-r--r-- | src/glsl/ast_array_index.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/glsl/ast_array_index.cpp b/src/glsl/ast_array_index.cpp index a5f23206acf..f3b060ea657 100644 --- a/src/glsl/ast_array_index.cpp +++ b/src/glsl/ast_array_index.cpp @@ -25,6 +25,19 @@ #include "glsl_types.h" #include "ir.h" +void +ast_array_specifier::print(void) const +{ + if (this->is_unsized_array) { + printf("[ ] "); + } + + foreach_list_typed (ast_node, array_dimension, link, &this->array_dimensions) { + printf("[ "); + array_dimension->print(); + printf("] "); + } +} /** * If \c ir is a reference to an array for which we are tracking the max array |