Function Prototype

vkDestroyBufferView

Destroy a buffer view object

To destroy a buffer view, call:

void vkDestroyBufferView(
    VkDevice device,
    VkBufferView bufferView,
    const VkAllocationCallbacks* pAllocator);
  • device is the logical device that destroys the buffer view.
  • bufferView is the buffer view to destroy.
  • pAllocator controls host memory allocation as described in the Memory Allocation chapter.

Valid Usage

VUID-vkDestroyBufferView-bufferView-00936

All submitted commands that refer to bufferView must have completed execution

VUID-vkDestroyBufferView-bufferView-00937

If VkAllocationCallbacks were provided when bufferView was created, a compatible set of callbacks must be provided here

VUID-vkDestroyBufferView-bufferView-00938

If no VkAllocationCallbacks were provided when bufferView was created, pAllocator must be NULL

Valid Usage (Implicit)

VUID-vkDestroyBufferView-bufferView-parameter

If bufferView is not VK_NULL_HANDLE, bufferView must be a valid VkBufferView handle

VUID-vkDestroyBufferView-pAllocator-parameter

If pAllocator is not NULL, pAllocator must be a valid pointer to a valid VkAllocationCallbacks structure

VUID-vkDestroyBufferView-bufferView-parent

If bufferView is a valid handle, it must have been created, allocated, or retrieved from device

Host Synchronization

  • Host access to bufferView must be externally synchronized ::