this->selector.array_index = array_index;
}
+ir_dereference::ir_dereference(ir_instruction *variable, const char *field)
+ : mode(ir_reference_record), var(variable)
+{
+ this->selector.field = field;
+ this->type = (var != NULL)
+ ? var->type->field_type(field) : glsl_type::error_type;
+}
+
bool
ir_dereference::is_lvalue()
{
ir_dereference(ir_instruction *variable, ir_rvalue *array_index);
+ ir_dereference(ir_instruction *variable, const char *field);
+
virtual ir_dereference *as_dereference()
{
return this;