mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 13:30:11 +01:00
glsl: Add a has_shader_io_blocks helper
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com> Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
This commit is contained in:
parent
f0902ee813
commit
7a3093efcc
1 changed files with 7 additions and 0 deletions
|
|
@ -265,6 +265,13 @@ struct _mesa_glsl_parse_state {
|
|||
return ARB_compute_shader_enable || is_version(430, 310);
|
||||
}
|
||||
|
||||
bool has_shader_io_blocks() const
|
||||
{
|
||||
return OES_shader_io_blocks_enable ||
|
||||
EXT_shader_io_blocks_enable ||
|
||||
is_version(150, 320);
|
||||
}
|
||||
|
||||
bool has_geometry_shader() const
|
||||
{
|
||||
return OES_geometry_shader_enable || is_version(150, 320);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue