validate_identifier(this->name, loc, state);
- type = glsl_type::get_record_instance(fields, decl_count, this->name);
+ type = glsl_type::get_struct_instance(fields, decl_count, this->name);
if (!type->is_anonymous() && !state->symbols->add_type(name, type)) {
const glsl_type *match = state->symbols->get_type(name);
};
const glsl_type *const record_of_array_3_of_int =
- glsl_type::get_record_instance(fields, ARRAY_SIZE(fields), "S");
+ glsl_type::get_struct_instance(fields, ARRAY_SIZE(fields), "S");
ir_variable *var_a = new(mem_ctx) ir_variable(glsl_type::int_type,
"a",
bare_fields[i].name = this->fields.structure[i].name;
}
const glsl_type *bare_type =
- get_record_instance(bare_fields, this->length, this->name);
+ get_struct_instance(bare_fields, this->length, this->name);
delete[] bare_fields;
return bare_type;
}
const glsl_type *
-glsl_type::get_record_instance(const glsl_struct_field *fields,
+glsl_type::get_struct_instance(const glsl_struct_field *fields,
unsigned num_fields,
const char *name)
{
t = glsl_type::get_interface_instance(fields, num_fields, packing,
row_major, name);
} else {
- t = glsl_type::get_record_instance(fields, num_fields, name);
+ t = glsl_type::get_struct_instance(fields, num_fields, name);
}
free(fields);
/**
* Get the instance of a record type
*/
- static const glsl_type *get_record_instance(const glsl_struct_field *fields,
+ static const glsl_type *get_struct_instance(const glsl_struct_field *fields,
unsigned num_fields,
const char *name);
glsl_struct_type(const glsl_struct_field *fields,
unsigned num_fields, const char *name)
{
- return glsl_type::get_record_instance(fields, num_fields, name);
+ return glsl_type::get_struct_instance(fields, num_fields, name);
}
const glsl_type *