Example #1
0
 private void CleanupSwapChain()
 {
     device.WaitIdle();
     foreach (var framebuffer in swapChainFramebuffers)
     {
         framebuffer.Dispose();
     }
     commandPool.FreeCommandBuffers(commandBuffers);
     graphicsPipeline.Dispose();
     pipelineLayout.Dispose();
     renderPass.Dispose();
     foreach (var view in swapChainImageViews)
     {
         view.Dispose();
     }
     swapChain.Dispose();
 }