| 88 | } |
| 89 | |
| 90 | void cleanup() { |
| 91 | vkDestroyDevice(device, nullptr); |
| 92 | |
| 93 | if (enableValidationLayers) { |
| 94 | DestroyDebugUtilsMessengerEXT(instance, debugMessenger, nullptr); |
| 95 | } |
| 96 | |
| 97 | vkDestroyInstance(instance, nullptr); |
| 98 | |
| 99 | glfwDestroyWindow(window); |
| 100 | |
| 101 | glfwTerminate(); |
| 102 | } |
| 103 | |
| 104 | void createInstance() { |
| 105 | if (enableValidationLayers && !checkValidationLayerSupport()) { |
nothing calls this directly
no test coverage detected