diff options
author | marha <marha@users.sourceforge.net> | 2011-01-13 22:07:24 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-01-13 22:07:24 +0000 |
commit | dc54712d6b67dac7fc745cf3b9019b2c4c81f193 (patch) | |
tree | 002b3fd0e0233fe3e6c57d603a8471794f5ba922 /mesalib/src/glsl/ir.h | |
parent | ca14143b18b939ee4506936e77478f8c593802b5 (diff) | |
parent | a0a46bd55d7cbbf70757a29c067e21b70ac4e2df (diff) | |
download | vcxsrv-dc54712d6b67dac7fc745cf3b9019b2c4c81f193.tar.gz vcxsrv-dc54712d6b67dac7fc745cf3b9019b2c4c81f193.tar.bz2 vcxsrv-dc54712d6b67dac7fc745cf3b9019b2c4c81f193.zip |
svn merge ^/branches/released .
Diffstat (limited to 'mesalib/src/glsl/ir.h')
-rw-r--r-- | mesalib/src/glsl/ir.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mesalib/src/glsl/ir.h b/mesalib/src/glsl/ir.h index d11047f1d..f3a565f2e 100644 --- a/mesalib/src/glsl/ir.h +++ b/mesalib/src/glsl/ir.h @@ -295,6 +295,15 @@ public: unsigned invariant:1;
/**
+ * Has this variable been used for reading or writing?
+ *
+ * Several GLSL semantic checks require knowledge of whether or not a
+ * variable has been used. For example, it is an error to redeclare a
+ * variable as invariant after it has been used.
+ */
+ unsigned used:1;
+
+ /**
* Storage class of the variable.
*
* \sa ir_variable_mode
|