April 2017
Intermediate to advanced
700 pages
21h 36m
English
Buffer views are destroyed using the vkDestroyBufferView() function:
if( VK_NULL_HANDLE != buffer_view ) {
vkDestroyBufferView( logical_device, buffer_view, nullptr );
buffer_view = VK_NULL_HANDLE;
}
To avoid unnecessary function calls, we check whether the buffer view's handle is not empty before we call a buffer view destroying function.
Read now
Unlock full access