| 199 | } |
| 200 | |
| 201 | void cleanupSwapChain() { |
| 202 | for (auto framebuffer : swapChainFramebuffers) { |
| 203 | vkDestroyFramebuffer(device, framebuffer, nullptr); |
| 204 | } |
| 205 | |
| 206 | for (auto imageView : swapChainImageViews) { |
| 207 | vkDestroyImageView(device, imageView, nullptr); |
| 208 | } |
| 209 | |
| 210 | vkDestroySwapchainKHR(device, swapChain, nullptr); |
| 211 | } |
| 212 | |
| 213 | void cleanup() { |
| 214 | cleanupSwapChain(); |
nothing calls this directly
no outgoing calls
no test coverage detected