diff options
author | Kenneth Graunke <[email protected]> | 2013-07-13 19:20:37 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-07-18 16:57:22 -0700 |
commit | 1b719df14dcde947f3d9c43282866a65cf3a3fd2 (patch) | |
tree | 98b7d3ea832cb08854c3eef5ad41c8a46420735a /src/glsl/ast.h | |
parent | eb30af51d68e3cc137dd640e57c81bdda1aae527 (diff) |
glsl: Add a new ast_type_qualifier::has_auxiliary_storage() method.
"Auxiliary storage qualifiers" is the new term given to "centroid",
"patch", and "sample" by GLSL 4.20/GL_ARB_shading_language_420pack.
Even though we only support "centroid", it's useful to add this now
so that all auxiliary storage qualifiers get handled in the right places
once they're eventually supported.
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 78d24ae069d..816d5fccbbc 100644 --- a/src/glsl/ast.h +++ b/src/glsl/ast.h @@ -468,6 +468,11 @@ struct ast_type_qualifier { bool has_storage() const; /** + * Return whether an auxiliary storage qualifier is present. + */ + bool has_auxiliary_storage() const; + + /** * \brief Return string representation of interpolation qualifier. * * If an interpolation qualifier is present, then return that qualifier's |