mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
nir: add glsl_type_is_integer() helper
Fixes: 1c9c42d16b ("nir: add varying component packing helpers")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
552642066f
commit
9dd737bb02
2 changed files with 6 additions and 0 deletions
|
|
@ -301,6 +301,11 @@ glsl_type_is_boolean(const struct glsl_type *type)
|
|||
{
|
||||
return type->is_boolean();
|
||||
}
|
||||
bool
|
||||
glsl_type_is_integer(const struct glsl_type *type)
|
||||
{
|
||||
return type->is_integer();
|
||||
}
|
||||
|
||||
const glsl_type *
|
||||
glsl_void_type(void)
|
||||
|
|
|
|||
|
|
@ -142,6 +142,7 @@ bool glsl_type_is_image(const struct glsl_type *type);
|
|||
bool glsl_type_is_dual_slot(const struct glsl_type *type);
|
||||
bool glsl_type_is_numeric(const struct glsl_type *type);
|
||||
bool glsl_type_is_boolean(const struct glsl_type *type);
|
||||
bool glsl_type_is_integer(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_contains_atomic(const struct glsl_type *type);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue