[wgsl-reader] Add stride support.

This CL adds stride support to the WGSL reader.

Bug: tint:178
Change-Id: Id6b5163438e562a371255ad3fb992d0a716543e7
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/26040
Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
dan sinclair
2020-07-30 16:50:25 +00:00
parent ac4a2894fe
commit c8a85aa5a9
11 changed files with 185 additions and 24 deletions

View File

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