nir/types: Add an is_error helper

This commit is contained in:
Jason Ekstrand
2016-01-11 12:39:03 -08:00
parent 17cfafd83a
commit d032ede26f
2 changed files with 7 additions and 0 deletions

View File

@@ -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)
{

View File

@@ -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);