C Specification
To determine the memory requirements for a video session object, call:
// Provided by VK_KHR_video_queue
VkResult vkGetVideoSessionMemoryRequirementsKHR(
VkDevice device,
VkVideoSessionKHR videoSession,
uint32_t* pMemoryRequirementsCount,
VkVideoSessionMemoryRequirementsKHR* pMemoryRequirements);
Parameters
-
deviceis the logical device that owns the video session. -
videoSessionis the video session to query. -
pMemoryRequirementsCountis a pointer to an integer related to the number of memory binding requirements available or queried, as described below. -
pMemoryRequirementsisNULLor a pointer to an array of VkVideoSessionMemoryRequirementsKHR structures in which the memory binding requirements of the video session are returned.
Description
If pMemoryRequirements is NULL, then the number of memory bindings
required for the video session is returned in
pMemoryRequirementsCount.
Otherwise, pMemoryRequirementsCount must point to a variable set by
the application to the number of elements in the pMemoryRequirements
array, and on return the variable is overwritten with the number of memory
binding requirements actually written to pMemoryRequirements.
If pMemoryRequirementsCount is less than the number of memory bindings
required for the video session, then at most pMemoryRequirementsCount
elements will be written to pMemoryRequirements, and
VK_INCOMPLETE will be returned, instead of VK_SUCCESS, to
indicate that not all required memory binding requirements were returned.
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.