diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index 9d471480bbe..2231d4039dc 100644 --- a/src/compiler/nir_types.cpp +++ b/src/compiler/nir_types.cpp @@ -441,6 +441,13 @@ glsl_type_contains_image(const struct glsl_type *type) return type->contains_image(); } +bool +glsl_record_compare(const struct glsl_type *a, const struct glsl_type *b, + bool match_name, bool match_locations, bool match_precision) +{ + return a->record_compare(b, match_name, match_locations, match_precision); +} + const glsl_type * glsl_void_type(void) { diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h index 8360d9892de..ed5ec6159ff 100644 --- a/src/compiler/nir_types.h +++ b/src/compiler/nir_types.h @@ -166,6 +166,9 @@ bool glsl_sampler_type_is_array(const struct glsl_type *type); bool glsl_struct_type_is_packed(const struct glsl_type *type); bool glsl_contains_atomic(const struct glsl_type *type); bool glsl_contains_opaque(const struct glsl_type *type); +bool glsl_record_compare(const struct glsl_type *a, const struct glsl_type *b, + bool match_name, bool match_locations, + bool match_precision); const struct glsl_type *glsl_void_type(void); const struct glsl_type *glsl_float_type(void);