mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-12 23:54:17 +00:00
- fixed Vulkan memory allocator initialization
This commit is contained in:
parent
bc33856875
commit
94b77de5ed
1 changed files with 1 additions and 0 deletions
|
@ -220,6 +220,7 @@ void VulkanDevice::CreateAllocator()
|
||||||
allocinfo.flags = VMA_ALLOCATOR_CREATE_KHR_DEDICATED_ALLOCATION_BIT;
|
allocinfo.flags = VMA_ALLOCATOR_CREATE_KHR_DEDICATED_ALLOCATION_BIT;
|
||||||
allocinfo.physicalDevice = PhysicalDevice.Device;
|
allocinfo.physicalDevice = PhysicalDevice.Device;
|
||||||
allocinfo.device = device;
|
allocinfo.device = device;
|
||||||
|
allocinfo.instance = instance;
|
||||||
allocinfo.preferredLargeHeapBlockSize = 64 * 1024 * 1024;
|
allocinfo.preferredLargeHeapBlockSize = 64 * 1024 * 1024;
|
||||||
if (vmaCreateAllocator(&allocinfo, &allocator) != VK_SUCCESS)
|
if (vmaCreateAllocator(&allocinfo, &allocator) != VK_SUCCESS)
|
||||||
VulkanError("Unable to create allocator");
|
VulkanError("Unable to create allocator");
|
||||||
|
|
Loading…
Reference in a new issue