Class VkMemoryGetFdInfoKHR

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkMemoryGetFdInfoKHR extends Struct<VkMemoryGetFdInfoKHR> implements NativeResource

 struct VkMemoryGetFdInfoKHR {
     VkStructureType sType;
     void const * pNext;
     VkDeviceMemory memory;
     VkExternalMemoryHandleTypeFlagBits handleType;
 }
  • 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.
    • MEMORY

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

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

    • VkMemoryGetFdInfoKHR

      public VkMemoryGetFdInfoKHR(ByteBuffer container)
      Creates a VkMemoryGetFdInfoKHR 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<VkMemoryGetFdInfoKHR>
    • sType

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

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

      public long memory()
      Returns:
      the value of the memory field.
    • handleType

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

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

      public VkMemoryGetFdInfoKHR sType$Default()
      Sets the STRUCTURE_TYPE_MEMORY_GET_FD_INFO_KHR value to the sType field.
    • pNext

      public VkMemoryGetFdInfoKHR pNext(long value)
      Sets the specified value to the pNext field.
    • memory

      public VkMemoryGetFdInfoKHR memory(long value)
      Sets the specified value to the memory field.
    • handleType

      public VkMemoryGetFdInfoKHR handleType(int value)
      Sets the specified value to the handleType field.
    • set

      public VkMemoryGetFdInfoKHR set(int sType, long pNext, long memory, int handleType)
      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 VkMemoryGetFdInfoKHR malloc()
      Returns a new VkMemoryGetFdInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static VkMemoryGetFdInfoKHR.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkMemoryGetFdInfoKHR.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().
    • nmemory

      public static long nmemory(long struct)
      Unsafe version of memory().
    • nhandleType

      public static int nhandleType(long struct)
      Unsafe version of handleType().
    • 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.
    • nmemory

      public static void nmemory(long struct, long value)
      Unsafe version of memory.
    • nhandleType

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