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:
Timothy Arceri 2024-01-03 10:34:35 +11:00 committed by Marge Bot
parent 5eea4c42f5
commit b83477973f

View file

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