Skip to content

Commit 8f419ff

Browse files
authored
Merge pull request #18 from 00alia00/main
fix: dont ignore the remaining boids
2 parents c7fc04c + e805551 commit 8f419ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/boids/worker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl ComputeWorker for BoidWorker {
6868
.add_staging("boids_src", &initial_boids_data)
6969
.add_staging("boids_dst", &initial_boids_data)
7070
.add_pass::<BoidsShader>(
71-
[NUM_BOIDS / 64, 1, 1],
71+
[ops::ceil(NUM_BOIDS as f32 / 64.0) as u32, 1, 1],
7272
&["params", "boids_src", "boids_dst"],
7373
)
7474
.add_swap("boids_src", "boids_dst")

0 commit comments

Comments
 (0)