ash/ash
Marijn Suijten 570b554894
Assert that Vulkan array-getters return the same length (#534)
Originally introduced in [#489] this inserts the array-length equality
check everywhere else: in the supposedly invalid and inexistant event
where Vulkan suddenly returns less items (`count` has been modified)
than were originally queried through respective `_len()` functions (or
more likely: a slice of invalid length passed by the user) and some
elements at the end of the slice are left uninitialized, panic.

Wherever there is valid concern or possibility for this to happen - or
to circumvent assertions and panics altogether - mutable references to
mutable slices should be passed allowing the length to be promptly
updated.

[#489]: https://github.com/MaikKlein/ash/pull/489#discussion_r753020089
2022-01-06 00:17:32 +01:00
..
src Assert that Vulkan array-getters return the same length (#534) 2022-01-06 00:17:32 +01:00
tests Impl trait functions directly on EntryCustom/Instance/Device (#412) 2021-04-30 17:13:23 +02:00
build.rs Support linking Vulkan directly (#457) 2021-09-09 22:50:34 +02:00
Cargo.toml Release ash 0.35 and ash-window 0.9 without default compile-time linking (#529) 2021-12-27 23:52:23 +01:00
LICENSE-APACHE Adds LICENSE-* files to crate subdirectories (#452) 2021-07-09 12:21:15 +02:00
LICENSE-MIT Adds LICENSE-* files to crate subdirectories (#452) 2021-07-09 12:21:15 +02:00