Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/boids/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl ComputeWorker for BoidWorker {
.add_staging("boids_src", &initial_boids_data)
.add_staging("boids_dst", &initial_boids_data)
.add_pass::<BoidsShader>(
[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")
Expand Down
Loading