remove_struct_derefs_prep(&p[1], name, location, type);
- *type = glsl_get_array_instance(*type, length);
+ *type = glsl_array_type(*type, length);
break;
}
}
if (nir_is_per_vertex_io(var, b->shader->info.stage)) {
- type = glsl_get_array_instance(type,
- glsl_get_length(element->type));
+ type = glsl_array_type(type, glsl_get_length(element->type));
}
element->type = type;
if (glsl_type_is_array(type)) {
const struct glsl_type *elem =
member_type(glsl_get_array_element(type), index);
- return glsl_get_array_instance(elem, glsl_get_length(type));
+ return glsl_array_type(elem, glsl_get_length(type));
} else {
assert(glsl_type_is_struct(type));
assert(index < glsl_get_length(type));
return type;
}
-const glsl_type *
-glsl_get_array_instance(const glsl_type *type,
- unsigned array_size)
-{
- return glsl_type::get_array_instance(type, array_size);
-}
-
const glsl_type *
glsl_get_struct_field(const glsl_type *type, unsigned index)
{
const struct glsl_type *glsl_get_array_element(const struct glsl_type *type);
const struct glsl_type *glsl_without_array(const struct glsl_type *type);
const struct glsl_type *glsl_without_array_or_matrix(const struct glsl_type *type);
-const struct glsl_type *glsl_get_array_instance(const struct glsl_type *type,
- unsigned array_size);
const struct glsl_type *glsl_get_column_type(const struct glsl_type *type);