mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-25 19:08:12 +02:00
compiler/types: Add a struct_type_is_packed wrapper
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6065>
This commit is contained in:
parent
66d8bbd822
commit
140a5492e0
2 changed files with 8 additions and 0 deletions
|
|
@ -360,6 +360,13 @@ glsl_sampler_type_is_array(const struct glsl_type *type)
|
|||
return type->sampler_array;
|
||||
}
|
||||
|
||||
bool
|
||||
glsl_struct_type_is_packed(const struct glsl_type *type)
|
||||
{
|
||||
assert(glsl_type_is_struct(type));
|
||||
return type->packed;
|
||||
}
|
||||
|
||||
bool
|
||||
glsl_type_is_dual_slot(const struct glsl_type *type)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -152,6 +152,7 @@ bool glsl_type_is_integer(const struct glsl_type *type);
|
|||
bool glsl_type_contains_64bit(const struct glsl_type *type);
|
||||
bool glsl_sampler_type_is_shadow(const struct glsl_type *type);
|
||||
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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue