Skip to content

Commit

Permalink
Fix OpCapability in SPIR-V fragment shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Jul 9, 2024
1 parent e33ff92 commit 18f9dc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/backends/spirv.c
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ static void spirv_export_fragment(char *directory, function *main) {
debug_context context = {0};
check(pixel_input != NO_TYPE, context, "fragment input missing");

write_capabilities(&instructions);
write_capabilities(&decorations);
write_op_ext_inst_import(&decorations, "GLSL.std.450");
write_op_memory_model(&decorations, ADDRESSING_MODEL_LOGICAL, MEMORY_MODEL_GLSL450);
uint32_t entry_point = allocate_index();
Expand Down

0 comments on commit 18f9dc2

Please sign in to comment.