blob: 7b9cfa89189ed03ed42b7ee99c9bd3b0cfd9a9e3 [file] [log] [blame]
Ben Clayton97668c82021-07-27 08:17:29 +00001struct SSBO {
James Price3b671cb2022-03-28 14:31:22 +00002 m : mat2x2<f32>,
Ben Clayton97668c82021-07-27 08:17:29 +00003};
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
dan sinclairb29892b2022-06-07 13:55:34 +00006@compute @workgroup_size(1)
Ben Clayton97668c82021-07-27 08:17:29 +00007fn f() {
8 let v = ssbo.m;
9 ssbo.m = v;
10}