mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
VideoBackends:Vulkan: Use VMA for stream buffer
This commit is contained in:
@ -568,6 +568,13 @@ void CommandBufferManager::DeferImageDestruction(VkImage object)
|
||||
[object]() { vkDestroyImage(g_vulkan_context->GetDevice(), object, nullptr); });
|
||||
}
|
||||
|
||||
void CommandBufferManager::DeferImageDestruction(VkImage image, VmaAllocation alloc)
|
||||
{
|
||||
CmdBufferResources& cmd_buffer_resources = GetCurrentCmdBufferResources();
|
||||
cmd_buffer_resources.cleanup_resources.push_back(
|
||||
[image, alloc]() { vmaDestroyImage(g_vulkan_context->GetMemoryAllocator(), image, alloc); });
|
||||
}
|
||||
|
||||
void CommandBufferManager::DeferImageViewDestruction(VkImageView object)
|
||||
{
|
||||
CmdBufferResources& cmd_buffer_resources = GetCurrentCmdBufferResources();
|
||||
|
Reference in New Issue
Block a user