ash/generator
Marijn Suijten e6d80badc3
generator: Apply must_use attributes to all Vulkan structs (#845)
All structs are marked as `Copy`, and builders move `self` for a
convenient builder pattern directly on `default()` (using `&mut`
requires requires first keeping the instance alive in a `let` binding).
This however leads to builder functions accidentally moving a copy of
`self`, mutating it, and dropping the result directly when the caller
did not consume the returned value in ad-hoc field updates, in turn
leaving the author confused why their code compiles without warnings
while the struct was not updated.

Annotating all Vulkan structs with `#[must_use]` should at least give
them an idea why.
2023-12-05 22:09:44 +01:00
..
src generator: Apply must_use attributes to all Vulkan structs (#845) 2023-12-05 22:09:44 +01:00
Vulkan-Headers@9d27c893cd Update Vulkan-Headers to 1.3.271 (#816) 2023-11-28 15:05:27 +01:00
Cargo.toml build(deps): update syn requirement from 1.0 to 2.0 (#834) 2023-11-27 09:33:50 +01:00