ash/ash
Marijn Suijten c66db26bc3
device: Replace query_count parameter in get_query_pool_results with data.len() (#644)
A slice is designed to be a cheap view into a continuous segment of
memory and easily recreated with a different offset and size.  This can
be used to our advantage to let the user set exactly how many items they
want to request, while ensuring all returned slots are filled on success
or otherwise return `NOT_READY` if not enough query results could be
copied to user memory (or block if the `WAIT` flag is set).

This also opens the door to accepting `MaybeUninit` in the future and
returning the initialized slice in the `VkResult::Ok(here)` case.
2022-07-29 17:25:39 +02:00
..
src device: Replace query_count parameter in get_query_pool_results with data.len() (#644) 2022-07-29 17:25:39 +02:00
tests Replace builders with lifetimes/setters directly on Vulkan structs (#602) 2022-03-29 19:15:14 +02:00
build.rs Support linking Vulkan directly (#457) 2021-09-09 22:50:34 +02:00
Cargo.toml ash: Add missing Apache-2.0 to Cargo.toml license field 2022-07-28 09:48:15 -07: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