When we don't need a buffer view any more, we should destroy it.
Destroying a buffer view
How to do it...
- Take a logical device and store its handle in a variable of type VkDevice named logical_device.
- Use the buffer's view handle and initialize a variable of type VkBufferView named buffer_view with it.
- Call vkDestroyBufferView( logical_device, buffer_view, nullptr ). Provide the handle of the logical device, the handle of the buffer view, and a nullptr value.
- For safety reasons, assign the VK_NULL_HANDLE value to the buffer_view variable.
How it works...
Buffer views are destroyed using the vkDestroyBufferView...