mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-28 09:09:19 +01:00
17 lines
325 B
WebGPU Shading Language
17 lines
325 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, 1, 1)
|
|
fn main() {
|
|
let _e3 = w_mem.arr;
|
|
output = _e3;
|
|
return;
|
|
}
|