Class VkImportMemoryZirconHandleInfoFUCHSIA

java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.fuchsia.struct.VkImportMemoryZirconHandleInfoFUCHSIA
All Implemented Interfaces:
Addressable
Direct Known Subclasses:
VkImportMemoryZirconHandleInfoFUCHSIA.Buffer

public sealed class VkImportMemoryZirconHandleInfoFUCHSIA extends GroupType permits VkImportMemoryZirconHandleInfoFUCHSIA.Buffer

Layout

struct VkImportMemoryZirconHandleInfoFUCHSIA {
    (int) VkStructureType sType;
    const void* pNext;
    (int) VkExternalMemoryHandleTypeFlagBits handleType;
    (int32_t) zx_handle_t handle;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkImportMemoryZirconHandleInfoFUCHSIA.
    • 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_handleType

      public static final long OFFSET_handleType
      The byte offset of handleType.
    • LAYOUT_handleType

      public static final MemoryLayout LAYOUT_handleType
      The memory layout of handleType.
    • VH_handleType

      public static final VarHandle VH_handleType
      The VarHandle of handleType of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_handle

      public static final long OFFSET_handle
      The byte offset of handle.
    • LAYOUT_handle

      public static final MemoryLayout LAYOUT_handle
      The memory layout of handle.
    • VH_handle

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

    • VkImportMemoryZirconHandleInfoFUCHSIA

      public VkImportMemoryZirconHandleInfoFUCHSIA(MemorySegment segment)
      Creates VkImportMemoryZirconHandleInfoFUCHSIA with the given segment.
      Parameters:
      segment - the memory segment
  • Method Details

    • of

      Creates VkImportMemoryZirconHandleInfoFUCHSIA with the given segment.
      Parameters:
      segment - the memory segment
      Returns:
      the created instance or null if the segment is NULL
    • ofNative

      public static VkImportMemoryZirconHandleInfoFUCHSIA ofNative(MemorySegment segment)

      Creates VkImportMemoryZirconHandleInfoFUCHSIA 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 VkImportMemoryZirconHandleInfoFUCHSIA.Buffer ofNative(MemorySegment segment, long count)

      Creates VkImportMemoryZirconHandleInfoFUCHSIA 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

      Allocates a VkImportMemoryZirconHandleInfoFUCHSIA with the given segment allocator.
      Parameters:
      allocator - the segment allocator
      Returns:
      the allocated VkImportMemoryZirconHandleInfoFUCHSIA
    • alloc

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

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

      Converts this instance to a buffer.
      Returns:
      the 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 VkImportMemoryZirconHandleInfoFUCHSIA 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
    • handleType

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

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

      public static void handleType(MemorySegment segment, long index, int value)
      Sets handleType 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
    • handleType

      public VkImportMemoryZirconHandleInfoFUCHSIA handleType(int value)
      Sets handleType with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • handle

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

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

      public static void handle(MemorySegment segment, long index, int value)
      Sets handle 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
    • handle

      public VkImportMemoryZirconHandleInfoFUCHSIA handle(int value)
      Sets handle with the given value.
      Parameters:
      value - the value
      Returns:
      this