mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
nir/types: Add an is_vector_or_scalar helper
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
parent
d43e16b163
commit
7d90e570f3
2 changed files with 7 additions and 0 deletions
|
|
@ -143,6 +143,12 @@ glsl_type_is_scalar(const struct glsl_type *type)
|
|||
return type->is_scalar();
|
||||
}
|
||||
|
||||
bool
|
||||
glsl_type_is_vector_or_scalar(const struct glsl_type *type)
|
||||
{
|
||||
return type->is_vector() || type->is_scalar();
|
||||
}
|
||||
|
||||
bool
|
||||
glsl_type_is_matrix(const struct glsl_type *type)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -70,6 +70,7 @@ unsigned glsl_get_record_location_offset(const struct glsl_type *type,
|
|||
bool glsl_type_is_void(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);
|
||||
bool glsl_type_is_matrix(const struct glsl_type *type);
|
||||
|
||||
const struct glsl_type *glsl_void_type(void);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue