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