Class VkImportMemoryWin32HandleInfoKHR

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class VkImportMemoryWin32HandleInfoKHR
    extends Struct
    implements NativeResource
    import Win32 memory created on the same physical device.

    Importing memory objects from Windows handles does not transfer ownership of the handle to the Vulkan implementation. For handle types defined as NT handles, the application must release ownership using the CloseHandle system call when the handle is no longer needed.

    Applications can import the same underlying memory into multiple instances of Vulkan, into the same instance from which it was exported, and multiple times into a given Vulkan instance. In all cases, each import operation must create a distinct VkDeviceMemory object.

    Valid Usage
    Valid Usage (Implicit)

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • handleType – specifies the type of handle or name.
    • handle – the external handle to import, or NULL.
    • name – a NULL-terminated UTF-16 string naming the underlying memory resource to import, or NULL.


     struct VkImportMemoryWin32HandleInfoKHR {
         VkStructureType sType;
         void const * pNext;
         VkExternalMemoryHandleTypeFlagBits handleType;
         HANDLE handle;
         LPCWSTR name;