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