mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 06:20:09 +01:00
glsl: add helper to check for enhanced layouts support
Reviewed-by: Emil Velikov <emil.velikov@collabora.co.uk>
This commit is contained in:
parent
82e4f22d1e
commit
725fcdfbb1
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue