diff options
author | Timothy Arceri <[email protected]> | 2015-11-10 12:47:46 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-05-01 23:12:52 +1000 |
commit | daa8df590b68926c3fbde897ebae7d5f0a92bf45 (patch) | |
tree | 8c8693181fed2e3be6b8f12516ef44afafcb10d7 /src/compiler/glsl/ast.h | |
parent | ea4c1afd050fbfab4bd4d3d79cf7784e0fd0825f (diff) |
glsl: parse component layout qualifier
Reviewed-by: Anuj Phogat <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ast.h')
-rw-r--r-- | src/compiler/glsl/ast.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/compiler/glsl/ast.h b/src/compiler/glsl/ast.h index 92aa39e64b8..fb25bb357a3 100644 --- a/src/compiler/glsl/ast.h +++ b/src/compiler/glsl/ast.h @@ -502,6 +502,12 @@ struct ast_type_qualifier { */ unsigned explicit_index:1; + /** + * Flag set if GL_ARB_enhanced_layouts "component" layout + * qualifier is used. + */ + unsigned explicit_component:1; + /** * Flag set if GL_ARB_shading_language_420pack "binding" layout * qualifier is used. @@ -621,6 +627,14 @@ struct ast_type_qualifier { */ ast_expression *index; + /** + * Component specified via GL_ARB_enhaced_layouts + * + * \note + * This field is only valid if \c explicit_component is set. + */ + ast_expression *component; + /** Maximum output vertices in GLSL 1.50 geometry shaders. */ ast_layout_expression *max_vertices; |