graphics: use budget-aware preferred-device image allocation

This commit is contained in:
nmzik committed 2026-10-29 18:37:29 +01:00
1 parent 25f3ba4eae
commit 6ff6e7551d
2 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -151,7 +151,8 @@ bool GraphicContext::CreateImage(const vk::ImageCreateInfo& image_info, VulkanIm
EXIT_IF(allocator == nullptr || image.image != nullptr || image.allocation != nullptr);
VmaAllocationCreateInfo alloc_info {};
alloc_info.requiredFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT;
alloc_info.flags = VMA_ALLOCATION_CREATE_WITHIN_BUDGET_BIT;
alloc_info.usage = VMA_MEMORY_USAGE_AUTO_PREFER_DEVICE;
vk::Image::CType native_image = VK_NULL_HANDLE;
const auto result = static_cast<vk::Result>(