mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-13 10:51:35 +00:00
Bug: tint:1213 Change-Id: Ib1ebc4947405c4ada7a9bdbc6bd5a36447bbd234 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/67064 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
12 lines
173 B
WebGPU Shading Language
12 lines
173 B
WebGPU Shading Language
[[block]]
|
|
struct S {
|
|
arr : array<i32>;
|
|
};
|
|
|
|
[[binding(0), group(0)]] var<storage, read_write> s : S;
|
|
|
|
[[stage(compute), workgroup_size(1)]]
|
|
fn main() {
|
|
_ = &s.arr;
|
|
}
|