diff --git a/test/compute_boids.wgsl b/test/compute_boids.wgsl index 2ddcae1cbb..bf4ce44d11 100644 --- a/test/compute_boids.wgsl +++ b/test/compute_boids.wgsl @@ -83,11 +83,7 @@ fn comp_main() -> void { var pos : vec2; var vel : vec2; - var i : u32 = 0u; - loop { - if (i >= 5u) { - break; - } + for(var i : u32 = 0u; i < 5u; i = i + 1) { if (i == index) { continue; } @@ -106,10 +102,6 @@ fn comp_main() -> void { cVel = cVel + vel; cVelCount = cVelCount + 1; } - - continuing { - i = i + 1u; - } } if (cMassCount > 0) { cMass =