C Specification
To attach memory to a video session object, call:
// Provided by VK_KHR_video_queue
VkResult vkBindVideoSessionMemoryKHR(
VkDevice device,
VkVideoSessionKHR videoSession,
uint32_t bindSessionMemoryInfoCount,
const VkBindVideoSessionMemoryInfoKHR* pBindSessionMemoryInfos);
Parameters
-
device
is the logical device that owns the video session. -
videoSession
is the video session to be bound with device memory. -
bindSessionMemoryInfoCount
is the number of elements inpBindSessionMemoryInfos
. -
pBindSessionMemoryInfos
is a pointer to an array ofbindSessionMemoryInfoCount
VkBindVideoSessionMemoryInfoKHR structures specifying memory regions to be bound to specific memory bindings of the video session.
Description
The valid usage statements below refer to the VkMemoryRequirements
structure corresponding to a specific element of
pBindSessionMemoryInfos
, which is defined as follows:
-
If the
memoryBindIndex
member of the element ofpBindSessionMemoryInfos
in question matches thememoryBindIndex
member of one of the elements returned inpMemoryRequirements
when vkGetVideoSessionMemoryRequirementsKHR is called with the samevideoSession
and withpMemoryRequirementsCount
equal tobindSessionMemoryInfoCount
, then thememoryRequirements
member of that element ofpMemoryRequirements
is the VkMemoryRequirements structure corresponding to the element ofpBindSessionMemoryInfos
in question. -
Otherwise the element of
pBindSessionMemoryInfos
in question is said to not have a corresponding VkMemoryRequirements structure.
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.