Class VkImportSemaphoreFdInfoKHR

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

    public class VkImportSemaphoreFdInfoKHR
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.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;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, SEMAPHORE, FLAGS, HANDLETYPE, FD

        The struct member offsets.
    • Constructor Detail

      • VkImportSemaphoreFdInfoKHR

        public VkImportSemaphoreFdInfoKHR​(java.nio.ByteBuffer container)
        Creates a VkImportSemaphoreFdInfoKHR instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • sType

        public int sType()
        Returns the value of the sType field.
      • pNext

        public long pNext()
        Returns the value of the pNext field.
      • semaphore

        public long semaphore()
        Returns the value of the semaphore field.
      • flags

        public int flags()
        Returns the value of the flags field.
      • handleType

        public int handleType()
        Returns the value of the handleType field.
      • fd

        public int fd()
        Returns the value of the fd field.
      • set

        public VkImportSemaphoreFdInfoKHR set​(int sType,
                                              long pNext,
                                              long semaphore,
                                              int flags,
                                              int handleType,
                                              int fd)
        Initializes this struct with the specified values.
      • malloc

        public static VkImportSemaphoreFdInfoKHR malloc()
        Returns a new VkImportSemaphoreFdInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static VkImportSemaphoreFdInfoKHR calloc()
        Returns a new VkImportSemaphoreFdInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static VkImportSemaphoreFdInfoKHR create()
        Returns a new VkImportSemaphoreFdInfoKHR instance allocated with BufferUtils.
      • create

        public static VkImportSemaphoreFdInfoKHR create​(long address)
        Returns a new VkImportSemaphoreFdInfoKHR instance for the specified memory address.
      • mallocStack

        public static VkImportSemaphoreFdInfoKHR mallocStack()
        Returns a new VkImportSemaphoreFdInfoKHR instance allocated on the thread-local MemoryStack.
      • callocStack

        public static VkImportSemaphoreFdInfoKHR callocStack()
        Returns a new VkImportSemaphoreFdInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static VkImportSemaphoreFdInfoKHR mallocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkImportSemaphoreFdInfoKHR instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static VkImportSemaphoreFdInfoKHR callocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkImportSemaphoreFdInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static VkImportSemaphoreFdInfoKHR.Buffer callocStack​(int capacity,
                                                                    org.lwjgl.system.MemoryStack stack)
        Returns a new VkImportSemaphoreFdInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nsType

        public static int nsType​(long struct)
        Unsafe version of sType().
      • npNext

        public static long npNext​(long struct)
        Unsafe version of pNext().
      • nsemaphore

        public static long nsemaphore​(long struct)
        Unsafe version of semaphore().
      • nflags

        public static int nflags​(long struct)
        Unsafe version of flags().
      • nhandleType

        public static int nhandleType​(long struct)
        Unsafe version of handleType().
      • nfd

        public static int nfd​(long struct)
        Unsafe version of fd().
      • nsType

        public static void nsType​(long struct,
                                  int value)
        Unsafe version of sType.
      • npNext

        public static void npNext​(long struct,
                                  long value)
        Unsafe version of pNext.
      • nsemaphore

        public static void nsemaphore​(long struct,
                                      long value)
        Unsafe version of semaphore.
      • nflags

        public static void nflags​(long struct,
                                  int value)
        Unsafe version of flags.
      • nhandleType

        public static void nhandleType​(long struct,
                                       int value)
        Unsafe version of handleType.
      • nfd

        public static void nfd​(long struct,
                               int value)
        Unsafe version of fd.