glsl: add helper to check for enhanced layouts support
Reviewed-by: Emil Velikov <emil.velikov@collabora.co.uk>
This commit is contained in:
committed by
Timothy Arceri
parent
82e4f22d1e
commit
725fcdfbb1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user