| 186 | } |
| 187 | |
| 188 | void cleanupSwapChain() { |
| 189 | for (auto framebuffer : swapChainFramebuffers) { |
| 190 | vkDestroyFramebuffer(device, framebuffer, nullptr); |
| 191 | } |
| 192 | |
| 193 | for (auto imageView : swapChainImageViews) { |
| 194 | vkDestroyImageView(device, imageView, nullptr); |
| 195 | } |
| 196 | |
| 197 | vkDestroySwapchainKHR(device, swapChain, nullptr); |
| 198 | } |
| 199 | |
| 200 | void cleanup() { |
| 201 | cleanupSwapChain(); |
nothing calls this directly
no outgoing calls
no test coverage detected