mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
glsl: add glsl_type_is_float_16() helper
Acked-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18540>
This commit is contained in:
parent
5eea4c42f5
commit
b83477973f
1 changed files with 6 additions and 0 deletions
|
|
@ -610,6 +610,12 @@ glsl_type_is_integer_16_32_64(const glsl_type *t)
|
|||
return glsl_type_is_integer_16(t) || glsl_type_is_integer_32(t) || glsl_type_is_integer_64(t);
|
||||
}
|
||||
|
||||
static inline bool
|
||||
glsl_type_is_float_16(const glsl_type *t)
|
||||
{
|
||||
return t->base_type == GLSL_TYPE_FLOAT16;
|
||||
}
|
||||
|
||||
static inline bool
|
||||
glsl_type_is_float_16_32(const glsl_type *t)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue