| 220 | } |
| 221 | |
| 222 | void cleanupSwapChain() { |
| 223 | for (auto framebuffer : swapChainFramebuffers) { |
| 224 | vkDestroyFramebuffer(device, framebuffer, nullptr); |
| 225 | } |
| 226 | |
| 227 | for (auto imageView : swapChainImageViews) { |
| 228 | vkDestroyImageView(device, imageView, nullptr); |
| 229 | } |
| 230 | |
| 231 | vkDestroySwapchainKHR(device, swapChain, nullptr); |
| 232 | } |
| 233 | |
| 234 | void cleanup() { |
| 235 | cleanupSwapChain(); |
nothing calls this directly
no outgoing calls
no test coverage detected