diff options
author | Jordan Justen <[email protected]> | 2015-07-28 14:56:49 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2015-11-09 17:21:24 -0800 |
commit | 32746fc9b49db5eccdc228e12cbce4734f1020f9 (patch) | |
tree | 8205c0427d48cc2d99e4738705179da2070cf671 /src/glsl/ir.h | |
parent | c0ac4740a75f0701637df1ea82c450bb8c31a63a (diff) |
glsl: Add shared variable type
Shared variables are stored in a common pool accessible by all threads
in a compute shader local work group.
These variables are similar to OpenCL's local/__local variables.
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r-- | src/glsl/ir.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h index e576db5da71..32a766ef0f0 100644 --- a/src/glsl/ir.h +++ b/src/glsl/ir.h @@ -325,6 +325,7 @@ enum ir_variable_mode { ir_var_auto = 0, /**< Function local variables and globals. */ ir_var_uniform, /**< Variable declared as a uniform. */ ir_var_shader_storage, /**< Variable declared as an ssbo. */ + ir_var_shader_shared, /**< Variable declared as shared. */ ir_var_shader_in, ir_var_shader_out, ir_var_function_in, |