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