vulkano-rs / vulkano

Safe and rich Rust wrapper around the Vulkan API
Apache License 2.0
4.45k stars 435 forks source link

Add `GenericMemoryAllocator::pools` for allocation introspection #2501

Closed marc0246 closed 5 months ago

marc0246 commented 5 months ago

Together with #2499, this allows the user to fully inspect all allocated and free allocations. Useful for example for debug screens.

Fixes #2326 cc @aedm, @Michaelschnabel-DM

Changelog:

### Additions
- Added `GenericMemoryAllocator::pools` for introspection of memory allocations, along with `DeviceMemoryPool`, `DeviceMemoryBlocks`, `DeviceMemoryBlock` and `Suballocator::suballocations`.