Function Prototype

vkDestroyVideoSessionKHR

Destroy video session object

To destroy a video session, call:

void vkDestroyVideoSessionKHR(
    VkDevice device,
    VkVideoSessionKHR videoSession,
    const VkAllocationCallbacks* pAllocator);
  • device is the logical device that destroys the video session.
  • videoSession is the video session to destroy.
  • pAllocator controls host memory allocation as described in the Memory Allocation chapter.

Valid Usage

VUID-vkDestroyVideoSessionKHR-videoSession-07192

All submitted commands that refer to videoSession must have completed execution

VUID-vkDestroyVideoSessionKHR-videoSession-07193

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

VUID-vkDestroyVideoSessionKHR-videoSession-07194

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

Valid Usage (Implicit)

VUID-vkDestroyVideoSessionKHR-videoSession-parameter

If videoSession is not VK_NULL_HANDLE, videoSession must be a valid VkVideoSessionKHR handle

VUID-vkDestroyVideoSessionKHR-pAllocator-parameter

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

VUID-vkDestroyVideoSessionKHR-videoSession-parent

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

Host Synchronization

  • Host access to videoSession must be externally synchronized ::