mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 13:14:56 +00:00
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user