Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
07ac926294 [VMA] Use Host cached and Host coherent for Download operations
Increases the read speed operations but using appropriate VMA flags.
2025-09-13 18:17:45 +02:00

View file

@ -49,6 +49,9 @@ namespace Vulkan {
}
[[nodiscard]] VkMemoryPropertyFlags MemoryUsagePreferredVmaFlags(MemoryUsage usage) {
if (usage == MemoryUsage::Download) {
return VK_MEMORY_PROPERTY_HOST_CACHED_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
}
return usage != MemoryUsage::DeviceLocal ? VK_MEMORY_PROPERTY_HOST_COHERENT_BIT
: VkMemoryPropertyFlagBits{};
}