mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 19:00:13 +01:00
nir/types: add more nir_type_is_xxx() wrappers
This commit is contained in:
parent
9fa0989ff2
commit
513ee7fa48
2 changed files with 14 additions and 0 deletions
|
|
@ -168,6 +168,18 @@ glsl_type_is_matrix(const struct glsl_type *type)
|
|||
return type->is_matrix();
|
||||
}
|
||||
|
||||
bool
|
||||
glsl_type_is_array(const struct glsl_type *type)
|
||||
{
|
||||
return type->is_array();
|
||||
}
|
||||
|
||||
bool
|
||||
glsl_type_is_struct(const struct glsl_type *type)
|
||||
{
|
||||
return type->is_record() || type->is_interface();
|
||||
}
|
||||
|
||||
bool
|
||||
glsl_type_is_sampler(const struct glsl_type *type)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -76,6 +76,8 @@ bool glsl_type_is_vector(const struct glsl_type *type);
|
|||
bool glsl_type_is_scalar(const struct glsl_type *type);
|
||||
bool glsl_type_is_vector_or_scalar(const struct glsl_type *type);
|
||||
bool glsl_type_is_matrix(const struct glsl_type *type);
|
||||
bool glsl_type_is_array(const struct glsl_type *type);
|
||||
bool glsl_type_is_struct(const struct glsl_type *type);
|
||||
bool glsl_type_is_sampler(const struct glsl_type *type);
|
||||
bool glsl_sampler_type_is_shadow(const struct glsl_type *type);
|
||||
bool glsl_sampler_type_is_array(const struct glsl_type *type);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue