Function Prototype
vkDestroyVideoSessionKHR
Destroy video session object
To destroy a video session, call:
void vkDestroyVideoSessionKHR(
VkDevice device,
VkVideoSessionKHR videoSession,
const VkAllocationCallbacks* pAllocator);
deviceis the logical device that destroys the video session.videoSessionis the video session to destroy.pAllocatorcontrols 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-device-parameter
device must be a valid VkDevice handle
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
videoSessionmust be externally synchronized ::