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
11
12
struct Style {
    color: vec4f,
    width: f32,
    _padding: vec2<f32>
}

@group(0) @binding(0)
var<storage> frame: Style;

@compute @workgroup_size(1)
fn main(@builtin(global_invocation_id) id: vec3<u32>) {
}