We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c7fc04c + e805551 commit 8f419ffCopy full SHA for 8f419ff
examples/boids/worker.rs
@@ -68,7 +68,7 @@ impl ComputeWorker for BoidWorker {
68
.add_staging("boids_src", &initial_boids_data)
69
.add_staging("boids_dst", &initial_boids_data)
70
.add_pass::<BoidsShader>(
71
- [NUM_BOIDS / 64, 1, 1],
+ [ops::ceil(NUM_BOIDS as f32 / 64.0) as u32, 1, 1],
72
&["params", "boids_src", "boids_dst"],
73
)
74
.add_swap("boids_src", "boids_dst")
0 commit comments