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:
@@ -301,6 +301,11 @@ glsl_type_is_boolean(const struct glsl_type *type)
|
|||||||
{
|
{
|
||||||
return type->is_boolean();
|
return type->is_boolean();
|
||||||
}
|
}
|
||||||
|
bool
|
||||||
|
glsl_type_is_integer(const struct glsl_type *type)
|
||||||
|
{
|
||||||
|
return type->is_integer();
|
||||||
|
}
|
||||||
|
|
||||||
const glsl_type *
|
const glsl_type *
|
||||||
glsl_void_type(void)
|
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_dual_slot(const struct glsl_type *type);
|
||||||
bool glsl_type_is_numeric(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_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_shadow(const struct glsl_type *type);
|
||||||
bool glsl_sampler_type_is_array(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);
|
bool glsl_contains_atomic(const struct glsl_type *type);
|
||||||
|
Reference in New Issue
Block a user