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