Class VkImportSemaphoreFdInfoKHR

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

    public class VkImportSemaphoreFdInfoKHR
    extends Struct
    implements NativeResource
    Structure specifying POSIX file descriptor to import to a semaphore.
    Description

    The handle types supported by handleType are:

    Handle Types Supported by VkImportSemaphoreFdInfoKHR
    Handle TypeTransferencePermanence Supported
    EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD_BITReferenceTemporary,Permanent
    EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BITCopyTemporary
    Valid Usage
    Valid Usage (Implicit)
    • sType must be STRUCTURE_TYPE_IMPORT_SEMAPHORE_FD_INFO_KHR
    • pNext must be NULL
    • semaphore must be a valid VkSemaphore handle
    • flags must be a valid combination of VkSemaphoreImportFlagBits values
    • handleType must be a valid VkExternalSemaphoreHandleTypeFlagBits value
    Host Synchronization
    • Host access to semaphore must be externally synchronized
    See Also

    ImportSemaphoreFdKHR

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • semaphore – the semaphore into which the payload will be imported.
    • flags – a bitmask of VkSemaphoreImportFlagBits specifying additional parameters for the semaphore payload import operation.
    • handleType – specifies the type of fd.
    • fd – the external handle to import.

    Layout

    
     struct VkImportSemaphoreFdInfoKHR {
         VkStructureType sType;
         void const * pNext;
         VkSemaphore semaphore;
         VkSemaphoreImportFlags flags;
         VkExternalSemaphoreHandleTypeFlagBits handleType;
         int fd;
     }