Skip to content

Commit

Permalink
- fixed Vulkan memory allocator initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Oct 18, 2021
1 parent bc33856 commit 94b77de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/common/rendering/vulkan/system/vk_device.cpp
Expand Up @@ -220,6 +220,7 @@ void VulkanDevice::CreateAllocator()
allocinfo.flags = VMA_ALLOCATOR_CREATE_KHR_DEDICATED_ALLOCATION_BIT;
allocinfo.physicalDevice = PhysicalDevice.Device;
allocinfo.device = device;
allocinfo.instance = instance;
allocinfo.preferredLargeHeapBlockSize = 64 * 1024 * 1024;
if (vmaCreateAllocator(&allocinfo, &allocator) != VK_SUCCESS)
VulkanError("Unable to create allocator");
Expand Down

0 comments on commit 94b77de

Please sign in to comment.