mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
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:
parent
b315f6f82b
commit
ef4ca44780
2 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue