Class VkSubresourceLayout2EXT

java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.ext.struct.VkSubresourceLayout2EXT
All Implemented Interfaces:
Addressable

public final class VkSubresourceLayout2EXT extends GroupType

Layout

struct VkSubresourceLayout2EXT {
    (int) VkStructureType sType;
    void* pNext;
    (struct VkSubresourceLayout) VkSubresourceLayout subresourceLayout;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_subresourceLayout
      The byte offset of subresourceLayout.
    • LAYOUT_subresourceLayout

      public static final MemoryLayout LAYOUT_subresourceLayout
      The memory layout of subresourceLayout.
  • Constructor Details

    • VkSubresourceLayout2EXT

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

    • of

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

      public static VkSubresourceLayout2EXT ofNative(MemorySegment segment)

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

      Creates VkSubresourceLayout2EXT 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 VkSubresourceLayout2EXT alloc(SegmentAllocator allocator)
      Allocates a VkSubresourceLayout2EXT with the given segment allocator.
      Parameters:
      allocator - the segment allocator
      Returns:
      the allocated VkSubresourceLayout2EXT
    • alloc

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

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

      public VkSubresourceLayout2EXT 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 VkSubresourceLayout2EXT 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

      public VkSubresourceLayout2EXT pNext(MemorySegment value)
      Sets pNext with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • subresourceLayout

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

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

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

      public VkSubresourceLayout2EXT subresourceLayout(MemorySegment value)
      Sets subresourceLayout with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • subresourceLayout

      public VkSubresourceLayout2EXT subresourceLayout(Consumer<VkSubresourceLayout> func)
      Accepts subresourceLayout with the given function.
      Parameters:
      func - the function
      Returns:
      this
    • asSlice

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

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

      Visits VkSubresourceLayout2EXT 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 VkSubresourceLayout2EXT 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 VkSubresourceLayout2EXT 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
    • subresourceLayoutAt

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

      public VkSubresourceLayout2EXT subresourceLayoutAt(long index, MemorySegment value)
      Sets subresourceLayout with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • subresourceLayoutAt

      public VkSubresourceLayout2EXT subresourceLayoutAt(long index, Consumer<VkSubresourceLayout> func)
      Accepts subresourceLayout with the given function.
      Parameters:
      index - the index of the struct buffer
      func - the function
      Returns:
      this