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:
Kenneth Graunke 2016-10-12 00:13:55 -07:00
parent a1a292d177
commit 9c1609f0d6
2 changed files with 7 additions and 0 deletions

View file

@ -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)
{

View file

@ -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);