glsl: Factor out the sampler dim coordinate components switch statement.
[mesa.git] / src / compiler / nir_types.cpp
index 37dde30dd6c6eaf0071bf77f6ad43b39b914a3c2..807529fb2b87c366f12206ca4271899a24ef11e3 100644 (file)
@@ -620,6 +620,12 @@ glsl_channel_type(const glsl_type *t)
    }
 }
 
+const glsl_type *
+glsl_float16_type(const struct glsl_type *type)
+{
+   return type->get_float16_type();
+}
+
 void
 glsl_get_natural_size_align_bytes(const struct glsl_type *type,
                                   unsigned *size, unsigned *align)