Skip to content

Commit

Permalink
Implement OPCODE_STORE_VARIABLE for SPIR-V
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Dec 13, 2023
1 parent d2f70c3 commit f444ddc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/backends/spirv.c
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,11 @@ static void write_function(instructions_buffer *instructions, function *f, shade
write_op_store(instructions, pointer, convert_kong_index_to_spirv_index(o->op_store_member.from.index));
break;
}
case OPCODE_STORE_VARIABLE: {
write_op_store(instructions, convert_kong_index_to_spirv_index(o->op_store_var.to.index),
convert_kong_index_to_spirv_index(o->op_store_var.from.index));
break;
}
case OPCODE_RETURN: {
if (stage == SHADER_STAGE_VERTEX && main) {
type *output_type = get_type(output);
Expand Down

0 comments on commit f444ddc

Please sign in to comment.