OSDN Git Service

nir: Add a C wrapper for glsl_type::is_array_of_arrays().
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 12 Oct 2016 07:13:55 +0000 (00:13 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 19 Nov 2016 20:30:26 +0000 (12:30 -0800)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir_types.cpp
src/compiler/nir_types.h

index 5b04e18..cc90efd 100644 (file)
@@ -185,6 +185,12 @@ glsl_type_is_array(const struct glsl_type *type)
 }
 
 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)
 {
    return type->is_record() || type->is_interface();
index 57f4708..9088a06 100644 (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);