Class VkExportMemoryAllocateInfoKHR

java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkExportMemoryAllocateInfoKHR
All Implemented Interfaces:
Addressable

public final class VkExportMemoryAllocateInfoKHR extends GroupType

Layout

struct VkExportMemoryAllocateInfoKHR {
    (int) VkStructureType sType;
    const void* pNext;
    ((uint32_t) VkFlags) VkExternalMemoryHandleTypeFlags handleTypes;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkExportMemoryAllocateInfoKHR.
    • OFFSET_sType

      public static final long OFFSET_sType
      The byte offset of sType.
    • LAYOUT_sType

      public static final MemoryLayout LAYOUT_sType
      The memory layout of sType.
    • VH_sType

      public static final VarHandle VH_sType
      The VarHandle of sType of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pNext

      public static final long OFFSET_pNext
      The byte offset of pNext.
    • LAYOUT_pNext

      public static final MemoryLayout LAYOUT_pNext
      The memory layout of pNext.
    • VH_pNext

      public static final VarHandle VH_pNext
      The VarHandle of pNext of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_handleTypes

      public static final long OFFSET_handleTypes
      The byte offset of handleTypes.
    • LAYOUT_handleTypes

      public static final MemoryLayout LAYOUT_handleTypes
      The memory layout of handleTypes.
    • VH_handleTypes

      public static final VarHandle VH_handleTypes
      The VarHandle of handleTypes of type (MemorySegment base, long baseOffset, long index)MemorySegment.
  • Constructor Details

    • VkExportMemoryAllocateInfoKHR

      public VkExportMemoryAllocateInfoKHR(MemorySegment segment, long elementCount)
      Creates VkExportMemoryAllocateInfoKHR with the given segment.
      Parameters:
      segment - the memory segment
      elementCount - the element count of this struct buffer
  • Method Details

    • of

      public static VkExportMemoryAllocateInfoKHR of(MemorySegment segment)
      Creates VkExportMemoryAllocateInfoKHR with the given segment.
      Parameters:
      segment - the memory segment
      Returns:
      the created instance or null if the segment is NULL
    • ofNative

      public static VkExportMemoryAllocateInfoKHR ofNative(MemorySegment segment)

      Creates VkExportMemoryAllocateInfoKHR with the given segment.

      Reinterprets the segment if zero-length.

      Parameters:
      segment - the memory segment
      Returns:
      the created instance or null if the segment is NULL
    • ofNative

      public static VkExportMemoryAllocateInfoKHR ofNative(MemorySegment segment, long count)

      Creates VkExportMemoryAllocateInfoKHR with the given segment.

      Reinterprets the segment if zero-length.

      Parameters:
      segment - the memory segment
      count - the count of the buffer
      Returns:
      the created instance or null if the segment is NULL
    • alloc

      public static VkExportMemoryAllocateInfoKHR alloc(SegmentAllocator allocator)
      Allocates a VkExportMemoryAllocateInfoKHR with the given segment allocator.
      Parameters:
      allocator - the segment allocator
      Returns:
      the allocated VkExportMemoryAllocateInfoKHR
    • alloc

      public static VkExportMemoryAllocateInfoKHR alloc(SegmentAllocator allocator, long count)
      Allocates a VkExportMemoryAllocateInfoKHR with the given segment allocator and count.
      Parameters:
      allocator - the segment allocator
      count - the count
      Returns:
      the allocated VkExportMemoryAllocateInfoKHR
    • copyFrom

      Copies from the given source.
      Parameters:
      src - the source
      Returns:
      this
    • reinterpret

      public VkExportMemoryAllocateInfoKHR reinterpret(long count)
      Reinterprets this buffer with the given count.
      Parameters:
      count - the new count
      Returns:
      the reinterpreted buffer
    • sType

      public static int sType(MemorySegment segment, long index)
      Returns sType at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      sType at the given index
    • sType

      public int sType()
      Returns sType.
      Returns:
      sType
    • sType

      public static void sType(MemorySegment segment, long index, int value)
      Sets sType with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • sType

      public VkExportMemoryAllocateInfoKHR sType(int value)
      Sets sType with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pNext

      public static MemorySegment pNext(MemorySegment segment, long index)
      Returns pNext at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      pNext at the given index
    • pNext

      public MemorySegment pNext()
      Returns pNext.
      Returns:
      pNext
    • pNext

      public static void pNext(MemorySegment segment, long index, MemorySegment value)
      Sets pNext with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • pNext

      Sets pNext with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • handleTypes

      public static int handleTypes(MemorySegment segment, long index)
      Returns handleTypes at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      Returns:
      handleTypes at the given index
    • handleTypes

      public int handleTypes()
      Returns handleTypes.
      Returns:
      handleTypes
    • handleTypes

      public static void handleTypes(MemorySegment segment, long index, int value)
      Sets handleTypes with the given value at the given index.
      Parameters:
      segment - the segment of the struct
      index - the index of the struct buffer
      value - the value
    • handleTypes

      public VkExportMemoryAllocateInfoKHR handleTypes(int value)
      Sets handleTypes with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • asSlice

      public VkExportMemoryAllocateInfoKHR asSlice(long index)
      Creates a slice of VkExportMemoryAllocateInfoKHR.
      Parameters:
      index - the index of the struct buffer
      Returns:
      the slice of VkExportMemoryAllocateInfoKHR
    • asSlice

      public VkExportMemoryAllocateInfoKHR asSlice(long index, long count)
      Creates a slice of VkExportMemoryAllocateInfoKHR.
      Parameters:
      index - the index of the struct buffer
      count - the count
      Returns:
      the slice of VkExportMemoryAllocateInfoKHR
    • at

      Visits VkExportMemoryAllocateInfoKHR buffer at the given index.
      Parameters:
      index - the index of this buffer
      func - the function to run with the slice of this buffer
      Returns:
      this
    • sTypeAt

      public int sTypeAt(long index)
      Returns sType at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      sType at the given index
    • sTypeAt

      public VkExportMemoryAllocateInfoKHR sTypeAt(long index, int value)
      Sets sType with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • pNextAt

      public MemorySegment pNextAt(long index)
      Returns pNext at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      pNext at the given index
    • pNextAt

      public VkExportMemoryAllocateInfoKHR pNextAt(long index, MemorySegment value)
      Sets pNext with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • handleTypesAt

      public int handleTypesAt(long index)
      Returns handleTypes at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      handleTypes at the given index
    • handleTypesAt

      public VkExportMemoryAllocateInfoKHR handleTypesAt(long index, int value)
      Sets handleTypes with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this