diff options
author | Francisco Jerez <[email protected]> | 2013-11-22 20:57:44 -0800 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2014-02-12 18:44:04 +0100 |
commit | bb13691d1c4df0c9258289b77867e5d5c890a838 (patch) | |
tree | dfac46fc2dd2bc60ee79fdb659265f6e052fb938 /src/glsl/ir.cpp | |
parent | 107d03a6d5b63687361b2b4d2876ef52b082cbb5 (diff) |
glsl: Add image memory and layout qualifiers to ir_variable.
v2: Add comment next to the read_only and write_only qualifier flags.
Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/glsl/ir.cpp')
-rw-r--r-- | src/glsl/ir.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp index 1a36bd631c1..63dfa383a1d 100644 --- a/src/glsl/ir.cpp +++ b/src/glsl/ir.cpp @@ -1554,6 +1554,11 @@ ir_variable::ir_variable(const struct glsl_type *type, const char *name, this->data.max_array_access = 0; this->data.atomic.buffer_index = 0; this->data.atomic.offset = 0; + this->data.image.read_only = false; + this->data.image.write_only = false; + this->data.image.coherent = false; + this->data.image._volatile = false; + this->data.image._restrict = false; if (type != NULL) { if (type->base_type == GLSL_TYPE_SAMPLER) |