| 72 | } |
| 73 | |
| 74 | void cleanup() { |
| 75 | if (enableValidationLayers) { |
| 76 | DestroyDebugUtilsMessengerEXT(instance, debugMessenger, nullptr); |
| 77 | } |
| 78 | |
| 79 | vkDestroyInstance(instance, nullptr); |
| 80 | |
| 81 | glfwDestroyWindow(window); |
| 82 | |
| 83 | glfwTerminate(); |
| 84 | } |
| 85 | |
| 86 | void createInstance() { |
| 87 | if (enableValidationLayers && !checkValidationLayerSupport()) { |
nothing calls this directly
no test coverage detected