mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 00:49:04 +02:00
nir: Add a C wrapper for glsl_type::is_array_of_arrays().
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
a1a292d177
commit
9c1609f0d6
2 changed files with 7 additions and 0 deletions
|
|
@ -184,6 +184,12 @@ glsl_type_is_array(const struct glsl_type *type)
|
|||
return type->is_array();
|
||||
}
|
||||
|
||||
bool
|
||||
glsl_type_is_array_of_arrays(const struct glsl_type *type)
|
||||
{
|
||||
return type->is_array_of_arrays();
|
||||
}
|
||||
|
||||
bool
|
||||
glsl_type_is_struct(const struct glsl_type *type)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -108,6 +108,7 @@ 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_array_of_arrays(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_type_is_image(const struct glsl_type *type);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue