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

Method cleanup

code/04_logical_device.cpp:90–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected