C Specification
To create a video session object, call:
// Provided by VK_KHR_video_queue
VkResult vkCreateVideoSessionKHR(
VkDevice device,
const VkVideoSessionCreateInfoKHR* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkVideoSessionKHR* pVideoSession);
Parameters
-
device
is the logical device that creates the decode or encode session object. -
pCreateInfo
is a pointer to a VkVideoSessionCreateInfoKHR structure containing parameters specifying the creation of the decode or encode session. -
pAllocator
controls host memory allocation as described in the Memory Allocation chapter. -
pVideoSession
is a pointer to a VkVideoSessionKHR structure specifying the decode or encode video session object which will be created by this function when it returnsVK_SUCCESS
Description
Video session objects are created in uninitialized state.
In order to transition the video session into initial state, the
application must issue a vkCmdControlVideoCodingKHR command with the
flags
member of VkVideoCodingControlInfoKHR including
VK_VIDEO_CODING_CONTROL_RESET_BIT_KHR
.
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.