nir/types: Add an is_error helper
This commit is contained in:
@@ -164,6 +164,12 @@ glsl_type_is_void(const glsl_type *type)
|
|||||||
return type->is_void();
|
return type->is_void();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
glsl_type_is_error(const glsl_type *type)
|
||||||
|
{
|
||||||
|
return type->is_error();
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
glsl_type_is_vector(const struct glsl_type *type)
|
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);
|
unsigned length);
|
||||||
|
|
||||||
bool glsl_type_is_void(const struct glsl_type *type);
|
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_vector(const struct glsl_type *type);
|
||||||
bool glsl_type_is_scalar(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);
|
bool glsl_type_is_vector_or_scalar(const struct glsl_type *type);
|
||||||
|
Reference in New Issue
Block a user