Introduction to Deinitialising Vulkan

Closing down Vulkan

This is the simplest of the six stages. All of the previously initialised Vulkan objects are destroyed in the reverse order to which they were created. Any memory that had been allocated for the various buffers is also freed. This ensures everything is cleaned up correctly.

In the example code, all cleanup is handled within the deinitialize() function which makes use of the vkDestroy[...]() and vkFree[...]() functions.