Vulkan Memory Allocator
|
VmaAllocator
objects can be used independently. There should be no need to create multiple such objects though - one per VkDevice
is enough.VmaAllocator
as first parameter are safe to call from multiple threads simultaneously because they are synchronized internally when needed.VmaAllocator
object must be synchronized externally.VmaAllocation
object must be externally synchronized. For example, you must not call vmaGetAllocationInfo() and vmaMapMemory() from different threads at the same time if you pass the same VmaAllocation
object to these functions.