src/compiler/glsl/lower_output_reads.cpp
/**
 * Create an assignment to copy a temporary value back to the actual output.
 */
Create an assignment to copy a temporary value back to the actual output.
Create an assignment to copy a temporary value back to the actual output .
static ir_assignment *
copy(void *ctx, ir_variable *output, ir_variable *temp)
{
   ir_dereference_variable *lhs = new(ctx) ir_dereference_variable(output);
   ir_dereference_variable *rhs = new(ctx) ir_dereference_variable(temp);
   return new(ctx) ir_assignment(lhs, rhs);
}
static ir_assignment * copy ( void * ctx , ir_variable * output , ir_variable * temp ) { ir_dereference_variable * lhs = new ( ctx ) ir_dereference_variable ( output ) ; ir_dereference_variable * rhs = new ( ctx ) ir_dereference_variable ( temp ) ; return new ( ctx ) ir_assignment ( lhs , rhs ) ; }
Create an assignment to copy a temporary value back to the actual output.
Create an assignment to copy a temporary value back to the actual output .