diff options
author | Kenneth Graunke <[email protected]> | 2016-10-12 00:13:55 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-11-19 12:30:26 -0800 |
commit | 9c1609f0d6f1c795d2eb7aa61e9460c16943ab5f (patch) | |
tree | a1e799016c836f32719783e6aefe66c47900026c | |
parent | a1a292d17710a2bfb33f798c9f5fda73a5985261 (diff) |
nir: Add a C wrapper for glsl_type::is_array_of_arrays().
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r-- | src/compiler/nir_types.cpp | 6 | ||||
-rw-r--r-- | src/compiler/nir_types.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index 5b04e181e4c..cc90efd2ae7 100644 --- a/src/compiler/nir_types.cpp +++ b/src/compiler/nir_types.cpp @@ -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(); diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h index 57f4708b67a..9088a064cf7 100644 --- a/src/compiler/nir_types.h +++ b/src/compiler/nir_types.h @@ -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); |