diff options
author | Chris Forbes <[email protected]> | 2014-04-27 16:03:54 +1200 |
---|---|---|
committer | Chris Forbes <[email protected]> | 2014-06-04 18:56:05 +1200 |
commit | 5ecffe5a3a41cac5fe28d8136095a0c2acf385a8 (patch) | |
tree | 0c63558b0000aae323abfbaff2b693bd1e3e228d /src/glsl/ast.h | |
parent | 4b756b20c446bbaf0911d1b66c5a405ab3b133ef (diff) |
glsl: Add support for `precise` redeclarations
This works like glsl-1.20+'s invariant redeclarations, but with fewer
restrictions, since `precise` is allowed on pretty much anything.
Signed-off-by: Chris Forbes <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/glsl/ast.h')
-rw-r--r-- | src/glsl/ast.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/glsl/ast.h b/src/glsl/ast.h index b0430de071e..56e7bd86f91 100644 --- a/src/glsl/ast.h +++ b/src/glsl/ast.h @@ -746,13 +746,11 @@ public: exec_list declarations; /** - * Special flag for vertex shader "invariant" declarations. - * - * Vertex shaders can contain "invariant" variable redeclarations that do - * not include a type. For example, "invariant gl_Position;". This flag - * is used to note these cases when no type is specified. + * Flags for redeclarations. In these cases, no type is specified, to + * `type` is allowed to be NULL. In all other cases, this would be an error. */ - int invariant; + int invariant; /** < `invariant` redeclaration */ + int precise; /** < `precise` redeclaration */ }; |