Function Prototype

vkDestroyPrivateDataSlot

Destroy a private data slot

To destroy a private data slot, call:

void vkDestroyPrivateDataSlotEXT(
    VkDevice device,
    VkPrivateDataSlot privateDataSlot,
    const VkAllocationCallbacks* pAllocator);
  • device is the logical device associated with the creation of the object(s) holding the private data slot.
  • pAllocator controls host memory allocation as described in the Memory Allocation chapter.
  • privateDataSlot is the private data slot to destroy.

Valid Usage

VUID-vkDestroyPrivateDataSlot-privateDataSlot-04062

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

VUID-vkDestroyPrivateDataSlot-privateDataSlot-04063

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

Valid Usage (Implicit)

VUID-vkDestroyPrivateDataSlot-privateDataSlot-parameter

If privateDataSlot is not VK_NULL_HANDLE, privateDataSlot must be a valid VkPrivateDataSlot handle

VUID-vkDestroyPrivateDataSlot-pAllocator-parameter

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

VUID-vkDestroyPrivateDataSlot-privateDataSlot-parent

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

Host Synchronization

  • Host access to privateDataSlot must be externally synchronized ::