mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
nir: add more helpers to nir_types.cpp
These new helpers will be used in nir_gather_info.c in a following patch. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
ad9d4a4f8d
commit
cd52b4fb16
2 changed files with 21 additions and 0 deletions
|
|
@ -216,6 +216,24 @@ glsl_sampler_type_is_array(const struct glsl_type *type)
|
|||
return type->sampler_array;
|
||||
}
|
||||
|
||||
bool
|
||||
glsl_type_is_dual_slot(const struct glsl_type *type)
|
||||
{
|
||||
return type->is_dual_slot();
|
||||
}
|
||||
|
||||
bool
|
||||
glsl_type_is_numeric(const struct glsl_type *type)
|
||||
{
|
||||
return type->is_numeric();
|
||||
}
|
||||
|
||||
bool
|
||||
glsl_type_is_boolean(const struct glsl_type *type)
|
||||
{
|
||||
return type->is_boolean();
|
||||
}
|
||||
|
||||
const glsl_type *
|
||||
glsl_void_type(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -111,6 +111,9 @@ bool glsl_type_is_array(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);
|
||||
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_sampler_type_is_shadow(const struct glsl_type *type);
|
||||
bool glsl_sampler_type_is_array(const struct glsl_type *type);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue