| 230 | } |
| 231 | |
| 232 | void cleanupSwapChain() { |
| 233 | for (auto framebuffer : swapChainFramebuffers) { |
| 234 | vkDestroyFramebuffer(device, framebuffer, nullptr); |
| 235 | } |
| 236 | |
| 237 | for (auto imageView : swapChainImageViews) { |
| 238 | vkDestroyImageView(device, imageView, nullptr); |
| 239 | } |
| 240 | |
| 241 | vkDestroySwapchainKHR(device, swapChain, nullptr); |
| 242 | } |
| 243 | |
| 244 | void cleanup() { |
| 245 | cleanupSwapChain(); |
nothing calls this directly
no outgoing calls
no test coverage detected