wgpu v30.0.0 Ships with Optional Vertex Buffer Slots and WebGPU Spec Alignment
The `gfx-rs/wgpu` project recently released version 30.0.0, introducing key changes primarily focused on aligning the API with the WebGPU specification. A significant update is the addition of optional vertex buffer slots. This feature enables gaps in a `VertexState`'s buffers and supports unbinding vertex buffers, bringing wgpu into compliance with the WebGPU standard. As a result, developers migrating to v30.0.0 must now wrap vertex buffer layouts in `Some`. Another notable change is that integer shader I/O no longer defaults to `@interpolate(flat)`. This means developers must explicitly specify `@interpolate(flat)` or `@interpolate(perspective)` attributes if a particular interpolation mode is required for integer shader inputs or outputs. These updates reflect ongoing efforts to maintain strict adherence to the evolving WebGPU standard.
Sources
- v30.0.0 - GitHub: gfx-rs/wgpu