mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 13:14:56 +00:00
Support the group decoration.
This CL changes the set decoration to a group decoration. We still parse `set` until downstream users can be updated. Bug: tint:338 Change-Id: I610d1ed769b3a26c117ad6d875f8a99a3d5b7754 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/37920 Auto-Submit: dan sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
0e17caa361
commit
c068cfc139
@@ -56,9 +56,9 @@ fn frag_main() -> void {
|
||||
[[offset(0)]] particles : [[stride(16)]] array<Particle, 5>;
|
||||
};
|
||||
|
||||
[[binding(0), set(0)]] var<uniform> params : [[access(read)]] SimParams;
|
||||
[[binding(1), set(0)]] var<storage_buffer> particlesA : [[access(read_write)]] Particles;
|
||||
[[binding(2), set(0)]] var<storage_buffer> particlesB : [[access(read_write)]] Particles;
|
||||
[[binding(0), group(0)]] var<uniform> params : [[access(read)]] SimParams;
|
||||
[[binding(1), group(0)]] var<storage_buffer> particlesA : [[access(read_write)]] Particles;
|
||||
[[binding(2), group(0)]] var<storage_buffer> particlesB : [[access(read_write)]] Particles;
|
||||
|
||||
[[builtin(global_invocation_id)]] var<in> gl_GlobalInvocationID : vec3<u32>;
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
[[offset(0)]] modelViewProjectionMatrix : mat4x4<f32>;
|
||||
};
|
||||
|
||||
[[binding(0), set(0)]] var<uniform> uniforms : [[access(read)]] Uniforms;
|
||||
[[binding(0), group(0)]] var<uniform> uniforms : [[access(read)]] Uniforms;
|
||||
|
||||
[[location(0)]] var<in> cur_position : vec4<f32>;
|
||||
[[location(1)]] var<in> color : vec4<f32>;
|
||||
|
||||
Reference in New Issue
Block a user