wgsl_bindgen 0.22.2

Type safe Rust bindings workflow for wgsl shaders in wgpu
Documentation
1
2
3
4
5
6
7
8
9
10
#import "../../../example/src/more-shader-files/reachme" as reachme 

@group(0) @binding(0)
var<storage> rts: array<reachme::RtsStruct>;

@compute @workgroup_size(1)
fn main(@builtin(global_invocation_id) id: vec3<u32>) {
    // buffer[id.x] *= 2 * other::ONE;
}