blob: 5545a0dede9e342c0f0cdc4821260b4c1b1ac294 [file] [log] [blame]
enable chromium_experimental_full_ptr_parameters;
struct str {
arr : array<i32, 4>,
}
@group(0) @binding(0) var<storage, read_write> S : str;
fn func(pointer : ptr<storage, array<i32, 4>, read_write>) {
*(pointer) = array<i32, 4>();
}
@compute @workgroup_size(1)
fn main() {
func(&(S.arr));
}