VkMemoryGetWin32HandleInfoKHR(3)

# VkMemoryGetWin32HandleInfoKHR(3) Manual Page

## Name

VkMemoryGetWin32HandleInfoKHR - Structure describing a Win32 handle semaphore export operation

## C Specification

The `VkMemoryGetWin32HandleInfoKHR` structure is defined as:

    typedef struct VkMemoryGetWin32HandleInfoKHR {
        VkStructureType                       sType;
        const void*                           pNext;
        VkDeviceMemory                        memory;
        VkExternalMemoryHandleTypeFlagBits    handleType;
    } VkMemoryGetWin32HandleInfoKHR;

## Members

- `sType` is the type of this structure.

- `pNext` is `NULL` or a pointer to an extension-specific structure.

- `memory` is the memory object from which the handle will be exported.

- `handleType` is the type of handle requested.

## Description

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

- `handleType` must have been included in VkExportMemoryAllocateInfo::`handleTypes` when `memory` was created.

- 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`.

- `handleType` must be defined as an NT handle or a global share handle.

Valid Usage (Implicit)

- `sType` must be `VK_STRUCTURE_TYPE_MEMORY_GET_WIN32_HANDLE_INFO_KHR`

- `pNext` must be `NULL`

- `memory` must be a valid `VkDeviceMemory` handle

- `handleType` must be a valid VkExternalMemoryHandleTypeFlagBits value

## See Also

VkDeviceMemory, VkExternalMemoryHandleTypeFlagBits, VkStructureType, vkGetMemoryWin32HandleKHR

## 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.

## Copyright

Copyright (c) 2014-2019 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.