mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 14:55:05 +00:00
15 lines
286 B
WebGPU Shading Language
15 lines
286 B
WebGPU Shading Language
struct WStruct {
|
|
arr: array<u32, 512>,
|
|
atom: atomic<i32>,
|
|
atom_arr: array<array<atomic<i32>, 8>, 8>,
|
|
}
|
|
|
|
var<workgroup> w_mem: WStruct;
|
|
|
|
@group(0) @binding(0)
|
|
var<storage, read_write> output: array<u32, 512>;
|
|
|
|
@compute @workgroup_size(1)
|
|
fn main() {
|
|
output = w_mem.arr;
|
|
} |