dawn-cmake/test/deprecated/access_deco/storage_buffer.wgsl

13 lines
164 B
WebGPU Shading Language

[[block]]
struct SB {
a : f32;
};
[[group(0), binding(0)]] var<storage> sb : [[access(read_write)]] SB;
[[stage(compute)]]
fn main() {
var x : f32 = sb.a;
}