ash/ash-examples
Marijn Suijten 4e99de1cbb
Convert mem::zeroed() / 0 to MaybeUninit::uninit() (#798)
* Convert `mem::zeroed()` / `0` to `MaybeUninit::uninit()`

As noted in #792 changes like this might help us more strictly identify
and validate that the argument in question is only relevant as an output
argument (i.e. structs with `sType` are read by the function call, even
if the caller strictly expects return values there, so that it can fill
in multiple structures in a `pNext` chain, and must hence be `Default`-
initialized).

* Use uninit `Vec`s with late `set_len()` call instead of zero-initialization

* Use `uninit()` instead of `-1` for file descriptors

* Introduce `set_vec_len_on_success()` helper for `Vec::with_capacity()`
2023-12-01 22:25:45 +01:00
..
assets Rename examples to ash-examples (#820) 2023-11-17 17:27:28 +01:00
shader Rename examples to ash-examples (#820) 2023-11-17 17:27:28 +01:00
src Convert mem::zeroed() / 0 to MaybeUninit::uninit() (#798) 2023-12-01 22:25:45 +01:00
Cargo.toml Rename examples to ash-examples (#820) 2023-11-17 17:27:28 +01:00