gpu-allocator
gpu-allocator copied to clipboard
🦀 GPU memory allocator for Vulkan, DirectX 12 and Metal. Written in pure Rust
The visualizer gives blocks different colors based on what type of memory they are (linear or non-linear). We should add the option to give every allocation a different color (hash...
The visualizer code is very low quality at the moment. There is lots of duplication between the D3D12 and Vulkan variants. We should unify these more.
For example, we currently use these stats that VMA provides: ```rust stats.block_count = vma_stats.total.blockCount as usize; stats.alloc_count = vma_stats.total.allocationCount as usize; stats.used_bytes = vma_stats.total.usedBytes as usize; stats.unused_bytes = vma_stats.total.unusedBytes as...
When `store_stack_traces` is on (which it is by default) we occasionally get a crash in the `backtrace` crate. It would seem we're asserting in this line: https://github.com/rust-lang/backtrace-rs/blob/47069af003d7f4ca62f5b4517a43039c46dfc34d/src/dbghelp.rs#L315 ``` OS Version:...
Updates the requirements on [windows](https://github.com/microsoft/windows-rs) to permit the latest version. Release notes Sourced from windows's releases. 0.40.0 This release includes a rollup of fixes and improvements to the Win32 metadata...
The reason this may be desirable is to allow limiting how many resources the allocator may consume. This is required to safely have a vulkan renderer that also hosts a...
The specification states the following inside the documentation of [vkAllocateMemory](https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkAllocateMemory.html): > For historical reasons, if maxMemoryAllocationCount is exceeded, some implementations may return VK_ERROR_TOO_MANY_OBJECTS. Exceeding this limit will result in undefined...
It may be desired to import memory from an os object, such as a Win32 HANDLE, Linux Dmabuf, Fuchsia VMO, etc. Ideally the Vulkan allocator could provide a way to...