2021-05-21 21:01:23 +00:00
|
|
|
[[block]] struct S { a : i32; };
|
2021-06-04 20:41:47 +00:00
|
|
|
[[group(0), binding(0)]] var<storage, read_write> buf : S;
|
2021-05-21 21:01:23 +00:00
|
|
|
|
2021-06-29 18:39:44 +00:00
|
|
|
[[stage(compute), workgroup_size(1)]] fn main() {
|
2021-06-04 22:17:37 +00:00
|
|
|
let p : ptr<storage, i32, read_write> = &buf.a;
|
2021-05-21 21:01:23 +00:00
|
|
|
*p = 12;
|
|
|
|
}
|