Skip to content

Commit

Permalink
Fix Metal samplers
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Oct 6, 2023
1 parent fe5efbf commit e42e76b
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 @@ -346,7 +346,7 @@ static void write_functions(char *code, size_t *offset) {
int register_index = global_register_indices[globals[i]];

if (g.type == sampler_type_id) {
buffers_offset += sprintf(&buffers[buffers_offset], ", sampler<float> _%" PRIu64 " [[sampler(%i)]]", g.var_index, register_index);
buffers_offset += sprintf(&buffers[buffers_offset], ", sampler _%" PRIu64 " [[sampler(%i)]]", g.var_index, register_index);
}
else if (g.type == tex2d_type_id) {
buffers_offset += sprintf(&buffers[buffers_offset], ", texture2d<float> _%" PRIu64 " [[texture(%i)]]", g.var_index, register_index);
Expand Down

0 comments on commit e42e76b

Please sign in to comment.