diff options
author | Kenneth Graunke <[email protected]> | 2013-07-12 22:34:19 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-07-18 16:57:21 -0700 |
commit | 7cef2b22b84aecf9cddf65a3a054fd39e2e9b369 (patch) | |
tree | 4cc861434c0a9de37d1dcc9daecb6a259bf5e844 /src/glsl/ast.h | |
parent | 7ce5c6b2147f9af524f4073b6ee3b29c0a5a1522 (diff) |
glsl: Add a new ast_type_qualifier::has_layout() method.
This makes it easy to check if any layout qualifiers are set.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[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 c0350e7358e..441b389a74a 100644 --- a/src/glsl/ast.h +++ b/src/glsl/ast.h @@ -458,6 +458,11 @@ struct ast_type_qualifier { bool has_interpolation() const; /** + * Return whether a layout qualifier is present. + */ + bool has_layout() const; + + /** * \brief Return string representation of interpolation qualifier. * * If an interpolation qualifier is present, then return that qualifier's |