Traverse-Research / gpu-allocator

🦀 GPU memory allocator for Vulkan, DirectX 12 and Metal. Written in pure Rust
https://traverse.nl/
Apache License 2.0
380 stars 50 forks source link

Vulkan allocator should determine limits based off what the user passes in, not what Vulkan reports #126

Open i509VCB opened 2 years ago

i509VCB commented 2 years ago

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 wgpu device as a guest on the same logical device (such as with #125 where the memory limits being exceeded is undefined behavior).