Skip to content

Commit

Permalink
Correct use of constants
Browse files Browse the repository at this point in the history
  • Loading branch information
cwfitzgerald committed Dec 29, 2023
1 parent ec44902 commit b0d99b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rend3-routine/src/culling/batching.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ pub(super) fn batch_objects<M: Material>(
let invocation_count = object.inner.index_count / 3;

let key_difference = key != current_key;
let object_limit = current_object_index == 256;
let object_limit = current_object_index == BATCH_SIZE as u32;
let dispatch_limit = (current_invocation + invocation_count) >= max_dispatch_count * WORKGROUP_SIZE;

if key_difference || object_limit || dispatch_limit {
Expand Down

0 comments on commit b0d99b3

Please sign in to comment.