diff options
author | Matt Turner <[email protected]> | 2013-06-29 19:29:16 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2013-07-11 20:58:59 -0700 |
commit | 1b0d6aef03161eff4c9933548e964fec1258ea44 (patch) | |
tree | 07945e9514fac1588c57cde6b1bbcf386d380568 /src/glsl/ast.h | |
parent | ae79e86d4c0d82b4102e2ec65c93c8240fd22e9d (diff) |
glsl: Add support for C-style initializers.
Required by GL_ARB_shading_language_420pack.
Parts based on work done by Todd Previte and Ken Graunke, implementing
basic support for C-style initializers of arrays.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/ast.h')
-rw-r--r-- | src/glsl/ast.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glsl/ast.h b/src/glsl/ast.h index 44e9f1874b5..9b119edbb2f 100644 --- a/src/glsl/ast.h +++ b/src/glsl/ast.h @@ -915,6 +915,11 @@ _mesa_ast_array_index_to_hir(void *mem_ctx, ir_rvalue *array, ir_rvalue *idx, YYLTYPE &loc, YYLTYPE &idx_loc); +extern void +_mesa_ast_set_aggregate_type(const ast_type_specifier *type, + ast_expression *expr, + _mesa_glsl_parse_state *state); + void emit_function(_mesa_glsl_parse_state *state, ir_function *f); |