compiler/types: Add a new is_interface C wrapper

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@chromium.org>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
This commit is contained in:
Jason Ekstrand 2019-03-09 10:22:39 -06:00 committed by Jason Ekstrand
parent b315f6f82b
commit ef4ca44780
2 changed files with 7 additions and 0 deletions

View file

@ -289,6 +289,12 @@ glsl_type_is_struct(const struct glsl_type *type)
return type->is_struct();
}
bool
glsl_type_is_interface(const struct glsl_type *type)
{
return type->is_interface();
}
bool
glsl_type_is_struct_or_ifc(const struct glsl_type *type)
{

View file

@ -145,6 +145,7 @@ bool glsl_type_is_array(const struct glsl_type *type);
bool glsl_type_is_array_of_arrays(const struct glsl_type *type);
bool glsl_type_is_array_or_matrix(const struct glsl_type *type);
bool glsl_type_is_struct(const struct glsl_type *type);
bool glsl_type_is_interface(const struct glsl_type *type);
bool glsl_type_is_struct_or_ifc(const struct glsl_type *type);
bool glsl_type_is_sampler(const struct glsl_type *type);
bool glsl_type_is_image(const struct glsl_type *type);