glsl: Add a has_tessellation_shader() helper.
Similar to has_geometry_shader(), has_compute_shader(), and so on. This will make it easier to add more conditions here later. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
This commit is contained in:
@@ -277,6 +277,11 @@ struct _mesa_glsl_parse_state {
|
||||
return OES_geometry_shader_enable || is_version(150, 320);
|
||||
}
|
||||
|
||||
bool has_tessellation_shader() const
|
||||
{
|
||||
return ARB_tessellation_shader_enable || is_version(400, 0);
|
||||
}
|
||||
|
||||
bool has_clip_distance() const
|
||||
{
|
||||
return EXT_clip_cull_distance_enable || is_version(130, 0);
|
||||
|
Reference in New Issue
Block a user