An experimental library for generating typesafe Rust bindings from WGSL shaders to wgpu.
The WGSL shaders are parsed using naga to generate corresponding types in Rust. The provided functions can be incorporated into the compilation process using a build script. This enables catching many instances of invalid API usage at compile time such as incorrectly configuring group and binding indices. The amount of boilerplate code needed to initialize data in WGSL shaders is greatly reduced since binding layouts and descriptor code is generated automatically. The library currently only has limited support for bind groups.