| 916 | } |
| 917 | |
| 918 | void VulkanBaseContext::DestroyRenderPassAndFramebuffer(ref_ptr<BaseFramebuffer> framebuffer) |
| 919 | { |
| 920 | auto const & fbData = m_framebuffersData[framebuffer]; |
| 921 | if (m_pipeline && fbData.m_renderPass != VK_NULL_HANDLE) |
| 922 | m_pipeline->ResetCache(m_device, fbData.m_renderPass); |
| 923 | |
| 924 | for (auto & fb : fbData.m_framebuffers) |
| 925 | vkDestroyFramebuffer(m_device, fb, nullptr); |
| 926 | |
| 927 | if (fbData.m_renderPass != VK_NULL_HANDLE) |
| 928 | vkDestroyRenderPass(m_device, fbData.m_renderPass, nullptr); |
| 929 | |
| 930 | m_framebuffersData.erase(framebuffer); |
| 931 | } |
| 932 | |
| 933 | void VulkanBaseContext::CreateCommandPool() |
| 934 | { |
nothing calls this directly
no test coverage detected