2021-05-19 10:38:18 +00:00
|
|
|
struct S {
|
|
|
|
a : i32;
|
|
|
|
};
|
|
|
|
|
2022-01-19 22:46:57 +00:00
|
|
|
@group(0) @binding(0)
|
2021-06-04 20:41:47 +00:00
|
|
|
var<storage, read_write> v : S;
|
2021-05-19 10:38:18 +00:00
|
|
|
|
2022-01-19 22:46:57 +00:00
|
|
|
@stage(compute) @workgroup_size(1)
|
2021-05-19 10:38:18 +00:00
|
|
|
fn main() {
|
2021-06-04 22:17:37 +00:00
|
|
|
let p : ptr<storage, i32, read_write> = &v.a;
|
2021-05-19 10:38:18 +00:00
|
|
|
let use : i32 = *p + 1;
|
|
|
|
}
|