Skip to content

Commit

Permalink
[SPIR-V] Write pixel shader outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Jul 21, 2024
1 parent 59e02a7 commit dd63ee2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/backends/spirv.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,9 @@ static void write_function(instructions_buffer *instructions, function *f, uint3
write_return(instructions);
}
else {
uint32_t object = write_op_load(instructions, convert_type_to_spirv_index(o->op_return.var.type.type),
convert_kong_index_to_spirv_index(o->op_return.var.index));
write_op_store(instructions, output_var, object);
write_return(instructions);
}
ends_with_return = true;
Expand Down

0 comments on commit dd63ee2

Please sign in to comment.