[wgsl-reader][wgsl-writer] Update array decorations to new syntax.

This CL updates the array decorations to the new syntax requiring ()'s
around parameters.

Bug: tint:238
Change-Id: I5a8b19e302fbd3f78392553d8d1c5e882b900180
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/28601
Reviewed-by: Sarah Mashayekhi <sarahmashay@google.com>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
dan sinclair
2020-09-20 21:28:18 +00:00
committed by Commit Bot service account
parent 636d588f6e
commit 077d16d5e1
7 changed files with 56 additions and 28 deletions

View File

@@ -57,7 +57,7 @@ type SimParams = [[block]] struct {
};
type Particles = [[block]] struct {
[[offset(0)]] particles : [[stride 16]] array<Particle, 5>;
[[offset(0)]] particles : [[stride(16)]] array<Particle, 5>;
};
[[binding 0, set 0]] var<uniform> params : SimParams;