nir: add glsl_double_type() helper
[mesa.git] / src / compiler / nir_types.cpp
index 70e9cd397fc3bb042912ef0e831df4382155b195..2d46ed2a1ef1fcd723700d6f6c459b96db7bfada 100644 (file)
@@ -64,6 +64,12 @@ glsl_get_array_element(const glsl_type* type)
    return type->fields.array;
 }
 
+const glsl_type *
+glsl_without_array(const glsl_type *type)
+{
+   return type->without_array();
+}
+
 const glsl_type *
 glsl_get_struct_field(const glsl_type *type, unsigned index)
 {
@@ -126,9 +132,9 @@ glsl_get_aoa_size(const struct glsl_type *type)
 
 unsigned
 glsl_count_attribute_slots(const struct glsl_type *type,
-                           bool vertex_input_slots)
+                           bool is_vertex_input)
 {
-   return type->count_attribute_slots(vertex_input_slots);
+   return type->count_attribute_slots(is_vertex_input);
 }
 
 const char *
@@ -244,6 +250,12 @@ glsl_float_type(void)
    return glsl_type::float_type;
 }
 
+const glsl_type *
+glsl_double_type(void)
+{
+   return glsl_type::double_type;
+}
+
 const glsl_type *
 glsl_vec_type(unsigned n)
 {