Class VkImportFenceFdInfoKHR

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkImportFenceFdInfoKHR extends Struct<VkImportFenceFdInfoKHR> implements NativeResource

 struct VkImportFenceFdInfoKHR {
     VkStructureType sType;
     void const * pNext;
     VkFence fence;
     VkFenceImportFlags flags;
     VkExternalFenceHandleTypeFlagBits handleType;
     int fd;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • FENCE

      public static final int FENCE
      The struct member offsets.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
    • HANDLETYPE

      public static final int HANDLETYPE
      The struct member offsets.
    • FD

      public static final int FD
      The struct member offsets.
  • Constructor Details

    • VkImportFenceFdInfoKHR

      public VkImportFenceFdInfoKHR(ByteBuffer container)
      Creates a VkImportFenceFdInfoKHR 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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<VkImportFenceFdInfoKHR>
    • sType

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

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

      public long fence()
      Returns:
      the value of the fence 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.
    • sType

      public VkImportFenceFdInfoKHR sType(int value)
      Sets the specified value to the sType field.
    • sType$Default

      public VkImportFenceFdInfoKHR sType$Default()
      Sets the STRUCTURE_TYPE_IMPORT_FENCE_FD_INFO_KHR value to the sType field.
    • pNext

      public VkImportFenceFdInfoKHR pNext(long value)
      Sets the specified value to the pNext field.
    • fence

      public VkImportFenceFdInfoKHR fence(long value)
      Sets the specified value to the fence field.
    • flags

      public VkImportFenceFdInfoKHR flags(int value)
      Sets the specified value to the flags field.
    • handleType

      public VkImportFenceFdInfoKHR handleType(int value)
      Sets the specified value to the handleType field.
    • fd

      public VkImportFenceFdInfoKHR fd(int value)
      Sets the specified value to the fd field.
    • set

      public VkImportFenceFdInfoKHR set(int sType, long pNext, long fence, int flags, int handleType, int fd)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

      public static VkImportFenceFdInfoKHR create(long address)
      Returns a new VkImportFenceFdInfoKHR instance for the specified memory address.
    • createSafe

      public static @Nullable VkImportFenceFdInfoKHR createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkImportFenceFdInfoKHR.Buffer malloc(int capacity)
      Returns a new VkImportFenceFdInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VkImportFenceFdInfoKHR.Buffer calloc(int capacity)
      Returns a new VkImportFenceFdInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkImportFenceFdInfoKHR.Buffer create(int capacity)
      Returns a new VkImportFenceFdInfoKHR.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkImportFenceFdInfoKHR.Buffer create(long address, int capacity)
      Create a VkImportFenceFdInfoKHR.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VkImportFenceFdInfoKHR.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkImportFenceFdInfoKHR malloc(MemoryStack stack)
      Returns a new VkImportFenceFdInfoKHR instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static VkImportFenceFdInfoKHR calloc(MemoryStack stack)
      Returns a new VkImportFenceFdInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static VkImportFenceFdInfoKHR.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new VkImportFenceFdInfoKHR.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

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

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

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

      public static long nfence(long struct)
      Unsafe version of fence().
    • 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.
    • nfence

      public static void nfence(long struct, long value)
      Unsafe version of fence.
    • 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.