To get memory requirements for a video session, call:
// Provided by VK_KHR_video_queue VkResult vkGetVideoSessionMemoryRequirementsKHR( VkDevice device, VkVideoSessionKHR videoSession, uint32_t* pVideoSessionMemoryRequirementsCount, VkVideoGetMemoryPropertiesKHR* pVideoSessionMemoryRequirements);
deviceis the logical device that owns the video session.
videoSessionis the video session to query.
pVideoSessionMemoryRequirementsCountis a pointer to an integer related to the number of memory heap requirements available or queried, as described below.
NULLor a pointer to an array of VkVideoGetMemoryPropertiesKHR structures in which the memory heap requirements of the video session are returned.
NULL, then the number of
memory heap types required for the video session is returned in
pVideoSessionMemoryRequirementsCount must point to a
variable set by the user with the number of elements in the
pVideoSessionMemoryRequirements array, and on return the variable is
overwritten with the number of formats actually written to
pVideoSessionMemoryRequirementsCount is less than the number of
memory heap types required for the video session, then at most
pVideoSessionMemoryRequirementsCount elements will be written to
VK_INCOMPLETE will be
returned, instead of
VK_SUCCESS, to indicate that not all required
memory heap types were returned.
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.