MCPcopy Create free account
hub / github.com/Overv/VulkanTutorial / cleanup

Method cleanup

code/02_validation_layers.cpp:74–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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()) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected