| 51 | {} |
| 52 | |
| 53 | VulkanBaseContext::~VulkanBaseContext() |
| 54 | { |
| 55 | vkDeviceWaitIdle(m_device); |
| 56 | |
| 57 | if (m_pipeline) |
| 58 | { |
| 59 | m_pipeline->Destroy(m_device); |
| 60 | m_pipeline.reset(); |
| 61 | } |
| 62 | |
| 63 | for (auto & b : m_defaultStagingBuffers) |
| 64 | b.reset(); |
| 65 | |
| 66 | DestroyRenderPassAndFramebuffers(); |
| 67 | DestroySwapchain(); |
| 68 | DestroySyncPrimitives(); |
| 69 | DestroyCommandBuffers(); |
| 70 | DestroyCommandPool(); |
| 71 | } |
| 72 | |
| 73 | std::string VulkanBaseContext::GetRendererName() const |
| 74 | { |