diff options
author | Ian Romanick <[email protected]> | 2010-10-07 15:13:38 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-10-08 14:21:23 -0700 |
commit | eee68d3631813580a14fa51fda6f0c959279256c (patch) | |
tree | 18b91ceceac18e6df1449538e8e9fe95a3d182b9 /src/glsl/ir.h | |
parent | 2b45ba8bce6a2919762a2def3095c7b9ba05d692 (diff) |
glsl: Track explicit location in AST to IR translation
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r-- | src/glsl/ir.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h index fa246b5e570..3503bc9c897 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -289,6 +289,15 @@ public: /*@}*/ /** + * Was the location explicitly set in the shader? + * + * If the location is explicitly set in the shader, it \b cannot be changed + * by the linker or by the API (e.g., calls to \c glBindAttribLocation have + * no effect). + */ + unsigned explicit_location:1; + + /** * Storage location of the base of this variable * * The precise meaning of this field depends on the nature of the variable. |