mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
nir/glsl: add glsl_record_compare() wrapper
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15731>
This commit is contained in:
parent
3c0f349a7b
commit
7af9459670
2 changed files with 10 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue