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.h | |
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.h')
-rw-r--r-- | src/glsl/ir.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h index e266328b204..39585731898 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -691,6 +691,20 @@ public: } atomic; /** + * ARB_shader_image_load_store qualifiers. + */ + struct { + bool read_only; /**< "readonly" qualifier. */ + bool write_only; /**< "writeonly" qualifier. */ + bool coherent; + bool _volatile; + bool _restrict; + + /** Image internal format if specified explicitly, otherwise GL_NONE. */ + GLenum format; + } image; + + /** * Highest element accessed with a constant expression array index * * Not used for non-array variables. |