Rust to WGSL transpiler `wgsl-rs` released

19 points by schell


eventhelix

Nice milestone. Sizing buffers per WGSL ยง14.4.1 instead of size_of seems like exactly the kind of Rust/WGSL mismatch that's easy to get wrong.

Question about the ECS that runs on the GPU: are you planning to store components as struct-of-arrays (e.g., one storage buffer per component type), or keep everything in a single crabslab-style slab with array-of-structs records? I'm curious how wgsl-rs would handle each case, e.g., whether SoA means many bindings per shader, and whether the WGSL layout rules stay transparent when a component is a runtime-sized array.