mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 13:14:56 +00:00
[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:
committed by
Commit Bot service account
parent
636d588f6e
commit
077d16d5e1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user