Skip to content

Commit

Permalink
[Metal] Fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Oct 6, 2023
1 parent 5e212b3 commit 86ed4a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/backends/metal.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ static void write_functions(char *code, size_t *offset) {
if (f->return_type.array_size > 0) {
*offset += sprintf(&code[*offset], "struct _render_targets {\n");
for (uint32_t j = 0; j < f->return_type.array_size; ++j) {
*offset += sprintf(&code[*offset], "\t%s _%i : [[color(%i)]];\n", type_string(f->return_type.type), j, j);
*offset += sprintf(&code[*offset], "\t%s _%i [[color(%i)]];\n", type_string(f->return_type.type), j, j);
}
*offset += sprintf(&code[*offset], "};\n\n");
*offset += sprintf(&code[*offset], "fragment _render_targets %s(%s _%" PRIu64 " [[stage_in]]%s) {\n", get_name(f->name),
Expand Down

0 comments on commit 86ed4a0

Please sign in to comment.