blob: f13db830883e52350e91c5cbff541a7a6470a4ad [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]);
}