Crate of the Week

I'd like to nominate wgsl-bindgen. It's a binding generator for WGSL, the WebGPU shading language, to be used with wgpu. The author said it best:

wgsl_bindgen transforms your WGSL shader development workflow by automatically generating Rust types, constants, and boilerplate code that perfectly match your shaders. Powered by naga-oil, it integrates seamlessly into your build process to catch shader-related errors at compile time rather than runtime.

I've used it in my Newtonian particle system for rendering and compute. It saved me huge amounts of time and worked perfectly.

1 Like