2021-07-27 08:17:29 +00:00
|
|
|
struct SSBO {
|
2022-03-28 14:31:22 +00:00
|
|
|
m : mat2x2<f32>,
|
2022-01-19 18:11:17 +00:00
|
|
|
}
|
2021-07-27 08:17:29 +00:00
|
|
|
|
2022-01-19 22:46:57 +00:00
|
|
|
@group(0) @binding(0) var<storage, read_write> ssbo : SSBO;
|
2021-07-27 08:17:29 +00:00
|
|
|
|
2022-01-19 22:46:57 +00:00
|
|
|
@stage(compute) @workgroup_size(1)
|
2021-07-27 08:17:29 +00:00
|
|
|
fn f() {
|
|
|
|
let v = ssbo.m;
|
|
|
|
ssbo.m = v;
|
|
|
|
}
|