VkMemoryGetWin32HandleInfoKHR
The VkMemoryGetWin32HandleInfoKHR
structure is defined as:
typedef struct VkMemoryGetWin32HandleInfoKHR {
VkStructureType sType;
const void* pNext;
VkDeviceMemory memory;
VkExternalMemoryHandleTypeFlagBits handleType;
} VkMemoryGetWin32HandleInfoKHR;
sType
is a VkStructureType value identifying this structure.pNext
isNULL
or a pointer to a structure extending this structure.memory
is the memory object from which the handle will be exported.handleType
is a VkExternalMemoryHandleTypeFlagBits value specifying the type of handle requested.
The properties of the handle returned depend on the value of
handleType
.
See VkExternalMemoryHandleTypeFlagBits for a description of the
properties of the defined external memory handle types.
Valid Usage
VUID-VkMemoryGetWin32HandleInfoKHR-handleType-00662
handleType
must have been included in
VkExportMemoryAllocateInfo::handleTypes
when memory
was created
VUID-VkMemoryGetWin32HandleInfoKHR-handleType-00663
If handleType
is defined as an NT handle,
vkGetMemoryWin32HandleKHR must be called no more than once for
each valid unique combination of memory
and handleType
VUID-VkMemoryGetWin32HandleInfoKHR-handleType-00664
handleType
must be defined as an NT handle or a global share
handle
Valid Usage (Implicit)
VUID-VkMemoryGetWin32HandleInfoKHR-sType-sType
sType
must be VK_STRUCTURE_TYPE_MEMORY_GET_WIN32_HANDLE_INFO_KHR
VUID-VkMemoryGetWin32HandleInfoKHR-pNext-pNext
pNext
must be NULL
VUID-VkMemoryGetWin32HandleInfoKHR-memory-parameter
memory
must be a valid VkDeviceMemory handle
VUID-VkMemoryGetWin32HandleInfoKHR-handleType-parameter
handleType
must be a valid VkExternalMemoryHandleTypeFlagBits value