diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-06-03 10:35:42 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-06-03 10:35:42 +0200 |
commit | 7f1d3b1cfad648be5009b67b37ee8f6ea1061d8e (patch) | |
tree | 33af8e6f5df4beceaaf7b13ff7e3d29f6f56c439 /drivers | |
parent | 41e762ca2973ce7aa03f14f81b98c85835d2b9d5 (diff) | |
parent | 940d62907027f388026ba2cac1ac64381af5c78f (diff) | |
download | redot-engine-7f1d3b1cfad648be5009b67b37ee8f6ea1061d8e.tar.gz |
Merge pull request #92010 from akien-mga/vulkan-sdk-1.3.183.0
vulkan: Update all components to Vulkan SDK 1.3.183.0
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/vulkan/rendering_device_driver_vulkan.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/vulkan/rendering_device_driver_vulkan.cpp b/drivers/vulkan/rendering_device_driver_vulkan.cpp index 2a9e9ba264..97fd156584 100644 --- a/drivers/vulkan/rendering_device_driver_vulkan.cpp +++ b/drivers/vulkan/rendering_device_driver_vulkan.cpp @@ -999,6 +999,10 @@ Error RenderingDeviceDriverVulkan::_initialize_allocator() { allocator_info.physicalDevice = physical_device; allocator_info.device = vk_device; allocator_info.instance = context_driver->instance_get(); + const bool use_1_3_features = physical_device_properties.apiVersion >= VK_API_VERSION_1_3; + if (use_1_3_features) { + allocator_info.flags |= VMA_ALLOCATOR_CREATE_KHR_MAINTENANCE5_BIT; + } VkResult err = vmaCreateAllocator(&allocator_info, &allocator); ERR_FAIL_COND_V_MSG(err, ERR_CANT_CREATE, "vmaCreateAllocator failed with error " + itos(err) + "."); |