Class VkSemaphoreGetWin32HandleInfoKHR

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

    public class VkSemaphoreGetWin32HandleInfoKHR
    extends Struct
    implements NativeResource
    Structure describing a Win32 handle semaphore export operation.

    The properties of the handle returned depend on the value of handleType. See VkExternalSemaphoreHandleTypeFlagBits for a description of the properties of the defined external semaphore handle types.

    Valid Usage
    • handleType must have been included in VkExportSemaphoreCreateInfo::handleTypes when the semaphore’s current payload was created.
    • If handleType is defined as an NT handle, GetSemaphoreWin32HandleKHR must be called no more than once for each valid unique combination of semaphore and handleType.
    • semaphore must not currently have its payload replaced by an imported payload as described below in Importing Semaphore Payloads unless that imported payload’s handle type was included in VkExternalSemaphoreProperties::exportFromImportedHandleTypes for handleType.
    • If handleType refers to a handle type with copy payload transference semantics, as defined below in Importing Semaphore Payloads, there must be no queue waiting on semaphore.
    • If handleType refers to a handle type with copy payload transference semantics, semaphore must be signaled, or have an associated semaphore signal operation pending execution.
    • handleType must be defined as an NT handle or a global share handle.
    Valid Usage (Implicit)
    See Also


    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • semaphore – the semaphore from which state will be exported.
    • handleType – the type of handle requested.


     struct VkSemaphoreGetWin32HandleInfoKHR {
         VkStructureType sType;
         void const * pNext;
         VkSemaphore semaphore;
         VkExternalSemaphoreHandleTypeFlagBits handleType;