Function Prototype

vkDestroyVideoSessionParametersKHR

Destroy video session parameters object

To destroy a video session parameters object, call:

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

Valid Usage

VUID-vkDestroyVideoSessionParametersKHR-videoSessionParameters-07212

All submitted commands that refer to videoSessionParameters must have completed execution

VUID-vkDestroyVideoSessionParametersKHR-videoSessionParameters-07213

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

VUID-vkDestroyVideoSessionParametersKHR-videoSessionParameters-07214

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

Valid Usage (Implicit)

VUID-vkDestroyVideoSessionParametersKHR-videoSessionParameters-parameter

If videoSessionParameters is not VK_NULL_HANDLE, videoSessionParameters must be a valid VkVideoSessionParametersKHR handle

VUID-vkDestroyVideoSessionParametersKHR-pAllocator-parameter

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

VUID-vkDestroyVideoSessionParametersKHR-videoSessionParameters-parent

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

Host Synchronization

  • Host access to videoSessionParameters must be externally synchronized ::