Skip to content

Commit

Permalink
Fix "bias" uniforms in Metal
Browse files Browse the repository at this point in the history
Fixes #806
  • Loading branch information
RobDangerous committed Dec 20, 2023
1 parent 158cf1a commit 941f543
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,10 @@ void kinc_g5_internal_pipeline_set(kinc_g5_pipeline_t *pipeline) {
}

kinc_g5_constant_location_t kinc_g5_pipeline_get_constant_location(kinc_g5_pipeline_t *pipeline, const char *name) {
if (strcmp(name, "bias") == 0) {
name = "bias0";
}

kinc_g5_constant_location_t location;
location.impl.vertexOffset = -1;
location.impl.fragmentOffset = -1;
Expand Down

0 comments on commit 941f543

Please sign in to comment.