blob: 3b2c0bf32f04fd879074588701d6186fa721f9b6 [file] [log] [blame]
Ben Clayton97668c82021-07-27 08:17:29 +00001struct SSBO {
2 m : mat2x2<f32>;
3};
Ben Clayton01e4b6f2022-01-19 22:46:57 +00004@group(0) @binding(0) var<storage, read_write> ssbo : SSBO;
Ben Clayton97668c82021-07-27 08:17:29 +00005
Ben Clayton01e4b6f2022-01-19 22:46:57 +00006@stage(compute) @workgroup_size(1)
Ben Clayton97668c82021-07-27 08:17:29 +00007fn f() {
8 let v = ssbo.m;
9 ssbo.m = v;
10}