Skip to content

Commit

Permalink
Vulkan: cleanup copySurface pipeline framebuffers/descriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
goeiecool9999 committed Nov 4, 2024
1 parent 16c5726 commit f924e13
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/Cafe/HW/Latte/Renderer/Vulkan/VulkanSurfaceCopy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,24 @@ struct CopySurfacePipelineInfo
auto renderer = VulkanRenderer::GetInstance();
renderer->ReleaseDestructibleObject(vkObjRenderPass);
renderer->ReleaseDestructibleObject(vkObjPipeline);

for(auto& i : map_framebuffers)
{
for(auto& fb : i.second.m_array)
{
renderer->ReleaseDestructibleObject(fb->vkObjFramebuffer);
renderer->ReleaseDestructibleObject(fb->vkObjImageView);
}
}

for(auto& i : map_descriptors)
{
for(auto& descriptor : i.second.m_array)
{
renderer->ReleaseDestructibleObject(descriptor->vkObjImageView);
renderer->ReleaseDestructibleObject(descriptor->vkObjDescriptorSet);
}
}
}

VkDevice m_device = nullptr;
Expand Down

0 comments on commit f924e13

Please sign in to comment.