mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-28 07:30:22 +01:00
nir/types: Add an is_error helper
This commit is contained in:
parent
17cfafd83a
commit
d032ede26f
2 changed files with 7 additions and 0 deletions
|
|
@ -164,6 +164,12 @@ glsl_type_is_void(const glsl_type *type)
|
|||
return type->is_void();
|
||||
}
|
||||
|
||||
bool
|
||||
glsl_type_is_error(const glsl_type *type)
|
||||
{
|
||||
return type->is_error();
|
||||
}
|
||||
|
||||
bool
|
||||
glsl_type_is_vector(const struct glsl_type *type)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ unsigned glsl_get_record_location_offset(const struct glsl_type *type,
|
|||
unsigned length);
|
||||
|
||||
bool glsl_type_is_void(const struct glsl_type *type);
|
||||
bool glsl_type_is_error(const struct glsl_type *type);
|
||||
bool glsl_type_is_vector(const struct glsl_type *type);
|
||||
bool glsl_type_is_scalar(const struct glsl_type *type);
|
||||
bool glsl_type_is_vector_or_scalar(const struct glsl_type *type);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue