forked from vulkano-rs/vulkano
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Memory allocation revamp (vulkano-rs#1997)
* Add suballocators * Add tests * Retroactively abort `PoolAllocatorCreateInfo` * Use const generic for `PoolAllocator`'s block size * Move `new` and `try_into_region` to `Suballocator` * Move `allocate_unchecked` to `Suballocator` * Fix constructor visibility * Move `free_size` to `Suballocator` * Small fixes * Merge `BumpAllocator` and `SyncBumpAllocator` * Restrict `AllocParent::None` to tests * Rewording * Add dedicated allocations * Add `Suballocator::cleanup` * Make `free_size`s lock-free * Add `Suballocator::largest_free_chunk` * Add `ArrayVec` * Remove useless `unsafe` * Add `MemoryAllocator` * Add `GenericMemoryAllocator` * Small fixes * Retroactively abort `largest_free_chunk` * Small docs adjustments * Rearrange * Add `MemoryAlloc::mapped_ptr` * Fix oopsie * Add support for non-coherent mapped memory * Add `DeviceOwned` subtrait to `Suballocator` * Move granularities to suballocators, fix tests * Add cache control * Fix oopsie where alignment of 0 is possible * Store `Arc<DeviceMemory>` in suballocators * Add `MemoryAllocator::create_{buffer, image}` * Remove `MemoryPool` * Fix examples * Remove `MemoryAlloc::{memory, memory_type_index}` * Minor improvement to `AllocationCreationError` * Add some example docs * Add support for external memory * Swicheroo * Small fix * Shorten sm names, cache atom size in suballocators * Add config for allocation type to generic allocatr * Engrish * Fix a big oopsie * Spliteroo * Inglisch
- Loading branch information
Showing
69 changed files
with
5,845 additions
and
1,903 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.