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:
committed by
Jason Ekstrand
parent
b315f6f82b
commit
ef4ca44780
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user