diff options
author | Timothy Arceri <[email protected]> | 2015-10-28 07:42:49 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2015-11-12 10:18:14 +1100 |
commit | 725fcdfbb11ff4c4399d58e08403e4e0064a8c5e (patch) | |
tree | 9344f711b3d30b9c2877b9a3a0fb4158a0b5807e /src/glsl | |
parent | 82e4f22d1ec65269328bbd472261d6a8e0689558 (diff) |
glsl: add helper to check for enhanced layouts support
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/glsl_parser_extras.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser_extras.h b/src/glsl/glsl_parser_extras.h index 684b917afa0..1d8c1b8799f 100644 --- a/src/glsl/glsl_parser_extras.h +++ b/src/glsl/glsl_parser_extras.h @@ -209,6 +209,11 @@ struct _mesa_glsl_parse_state { return ARB_shader_atomic_counters_enable || is_version(420, 310); } + bool has_enhanced_layouts() const + { + return ARB_enhanced_layouts_enable || is_version(440, 0); + } + bool has_explicit_attrib_stream() const { return ARB_gpu_shader5_enable || is_version(400, 0); |