fix: render-target aliases were synchronously read back and copied through host memory twice

This commit is contained in:
nmzik committed 2026-07-21 07:37:52 +02:00
1 parent 42f634a751
commit 728b5b7d01
6 files changed
+116 -51

No files matched your search

+9 -8
View File
@@ -49,14 +49,15 @@ struct GraphicContext: public VulkanInstance {
};
struct VulkanMemory {
vk::MemoryRequirements requirements = {};
vk::MemoryPropertyFlags property = {};
vk::DeviceMemory memory = nullptr;
VmaAllocation allocation = nullptr;
VmaAllocationInfo allocation_info = {};
vk::DeviceSize offset = 0;
uint32_t type = 0;
uint64_t unique_id = 0;
vk::MemoryRequirements requirements = {};
vk::MemoryPropertyFlags property = {};
vk::MemoryPropertyFlags preferred_property = {};
vk::DeviceMemory memory = nullptr;
VmaAllocation allocation = nullptr;
VmaAllocationInfo allocation_info = {};
vk::DeviceSize offset = 0;
uint32_t type = 0;
uint64_t unique_id = 0;
};
enum class VulkanImageType {