commit | de4259ef804ceb579f7f1fc9b1960f081173766f | [log] [tgz] |
---|---|---|
author | dan sinclair <dsinclair@chromium.org> | Fri May 01 19:06:03 2020 +0000 |
committer | dan sinclair <dsinclair@google.com> | Fri May 01 19:06:03 2020 +0000 |
tree | 3122a04721323175adb0d0422065e05b3a2726ae | |
parent | abd472e45aea3a6d7358e3bfdca8dd8418fdb730 [diff] |
Fixup computeboids translation error. There was a - that changed to a + while converting. Fixed. Change-Id: Ic50a04624c5f4efdfc114459ccd5f42fc53c3ca2 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/20629 Reviewed-by: David Neto <dneto@google.com>
diff --git a/test/compute_boids.wgsl b/test/compute_boids.wgsl index 4f2f44f..c937df1 100644 --- a/test/compute_boids.wgsl +++ b/test/compute_boids.wgsl
@@ -114,7 +114,7 @@ } if (cMassCount > 0) { cMass = - (cMass / vec2<f32>(cast<f32>(cMassCount), cast<f32>(cMassCount))) + vPos; + (cMass / vec2<f32>(cast<f32>(cMassCount), cast<f32>(cMassCount))) - vPos; } if (cVelCount > 0) { cVel = cVel / vec2<f32>(cast<f32>(cVelCount), cast<f32>(cVelCount));