diff --git a/src/compiler/glsl_types.h b/src/compiler/glsl_types.h index 15740f6087d..31a2715e314 100644 --- a/src/compiler/glsl_types.h +++ b/src/compiler/glsl_types.h @@ -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) {