Structures
VkBindVideoSessionMemoryInfoKHR
Structure specifying memory bindings for a video session object
The VkBindVideoSessionMemoryInfoKHR
structure is defined as:
typedef struct VkBindVideoSessionMemoryInfoKHR {
VkStructureType sType;
const void* pNext;
uint32_t memoryBindIndex;
VkDeviceMemory memory;
VkDeviceSize memoryOffset;
VkDeviceSize memorySize;
} VkBindVideoSessionMemoryInfoKHR;
sType
is a VkStructureType value identifying this structure.pNext
isNULL
or a pointer to a structure extending this structure.memoryBindIndex
is the memory binding index to bind memory to.memory
is the allocated device memory to be bound to the video session’s memory binding with indexmemoryBindIndex
.memoryOffset
is the start offset of the region ofmemory
which is to be bound.memorySize
is the size in bytes of the region ofmemory
, starting frommemoryOffset
bytes, to be bound.
Valid Usage
VUID-VkBindVideoSessionMemoryInfoKHR-memoryOffset-07201
memoryOffset
must be less than the size of memory
VUID-VkBindVideoSessionMemoryInfoKHR-memorySize-07202
memorySize
must be less than or equal to the size of memory
minus memoryOffset
Valid Usage (Implicit)
VUID-VkBindVideoSessionMemoryInfoKHR-sType-sType
sType
must be VK_STRUCTURE_TYPE_BIND_VIDEO_SESSION_MEMORY_INFO_KHR
VUID-VkBindVideoSessionMemoryInfoKHR-pNext-pNext
pNext
must be NULL
VUID-VkBindVideoSessionMemoryInfoKHR-memory-parameter
memory
must be a valid VkDeviceMemory handle