From e805551c160f97dcbe5d559524f66ae5b71b1624 Mon Sep 17 00:00:00 2001 From: Alia Date: Tue, 6 May 2025 20:59:15 +0900 Subject: [PATCH] fix: dont ignroe the remaining boids --- examples/boids/worker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/boids/worker.rs b/examples/boids/worker.rs index 77d11e0..283fda1 100644 --- a/examples/boids/worker.rs +++ b/examples/boids/worker.rs @@ -68,7 +68,7 @@ impl ComputeWorker for BoidWorker { .add_staging("boids_src", &initial_boids_data) .add_staging("boids_dst", &initial_boids_data) .add_pass::( - [NUM_BOIDS / 64, 1, 1], + [ops::ceil(NUM_BOIDS as f32 / 64.0) as u32, 1, 1], &["params", "boids_src", "boids_dst"], ) .add_swap("boids_src", "boids_dst")