[Mesa-dev] [PATCH 2/6] glsl: add helper to check for enhanced layouts support

Timothy Arceri t_arceri at yahoo.com.au
Thu Nov 5 03:17:32 PST 2015


From: Timothy Arceri <timothy.arceri at collabora.com>

---
 src/glsl/glsl_parser_extras.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/glsl/glsl_parser_extras.h b/src/glsl/glsl_parser_extras.h
index 684b917..1d8c1b8 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);
-- 
2.4.3



More information about the mesa-dev mailing list