Convert computeboids to for().

This CL updates computeboids to use the `for()` sugar instead of the
loop/continuing block.

Change-Id: I13f416624821a87fbfa40b15669980bedc794ed4
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/28842
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
dan sinclair 2020-09-23 14:51:03 +00:00 committed by Commit Bot service account
parent 596fcdcec6
commit effd888d2f
1 changed files with 1 additions and 9 deletions

View File

@ -83,11 +83,7 @@ fn comp_main() -> void {
var pos : vec2<f32>;
var vel : vec2<f32>;
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 =