mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 13:38:00 +00:00
WGSL: Migrate access control to var<>
Spec change: https://github.com/gpuweb/gpuweb/pull/1735 Bug: tint:846 Change-Id: Id2eddc4e8f3bdb86027db8d61bb96b9b8ef9778f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/53386 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
3a07f7410f
commit
15eba9a048
@@ -166,8 +166,8 @@ void initSim() {
|
||||
particles : array<Particle>;
|
||||
};
|
||||
[[binding(0), group(0)]] var<uniform> params : SimParams;
|
||||
[[binding(1), group(0)]] var<storage> particlesA : [[access(read)]] Particles;
|
||||
[[binding(2), group(0)]] var<storage> particlesB : [[access(read_write)]] Particles;
|
||||
[[binding(1), group(0)]] var<storage, read> particlesA : Particles;
|
||||
[[binding(2), group(0)]] var<storage, read_write> particlesB : Particles;
|
||||
|
||||
// https://github.com/austinEng/Project6-Vulkan-Flocking/blob/master/data/shaders/computeparticles/particle.comp
|
||||
[[stage(compute)]]
|
||||
|
||||
Reference in New Issue
Block a user