Class VkInputAttachmentAspectReferenceKHR

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

public final class VkInputAttachmentAspectReferenceKHR extends GroupType

Layout

struct VkInputAttachmentAspectReferenceKHR {
    uint32_t subpass;
    uint32_t inputAttachmentIndex;
    ((uint32_t) VkFlags) VkImageAspectFlags aspectMask;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkInputAttachmentAspectReferenceKHR.
    • OFFSET_subpass

      public static final long OFFSET_subpass
      The byte offset of subpass.
    • LAYOUT_subpass

      public static final MemoryLayout LAYOUT_subpass
      The memory layout of subpass.
    • VH_subpass

      public static final VarHandle VH_subpass
      The VarHandle of subpass of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_inputAttachmentIndex

      public static final long OFFSET_inputAttachmentIndex
      The byte offset of inputAttachmentIndex.
    • LAYOUT_inputAttachmentIndex

      public static final MemoryLayout LAYOUT_inputAttachmentIndex
      The memory layout of inputAttachmentIndex.
    • VH_inputAttachmentIndex

      public static final VarHandle VH_inputAttachmentIndex
      The VarHandle of inputAttachmentIndex of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_aspectMask

      public static final long OFFSET_aspectMask
      The byte offset of aspectMask.
    • LAYOUT_aspectMask

      public static final MemoryLayout LAYOUT_aspectMask
      The memory layout of aspectMask.
    • VH_aspectMask

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

    • VkInputAttachmentAspectReferenceKHR

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

    • of

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

      public static VkInputAttachmentAspectReferenceKHR ofNative(MemorySegment segment)

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

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

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

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

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

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

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

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

      public VkInputAttachmentAspectReferenceKHR subpass(int value)
      Sets subpass with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • inputAttachmentIndex

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

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

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

      public VkInputAttachmentAspectReferenceKHR inputAttachmentIndex(int value)
      Sets inputAttachmentIndex with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • aspectMask

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

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

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

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

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

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

      Visits VkInputAttachmentAspectReferenceKHR 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
    • subpassAt

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

      public VkInputAttachmentAspectReferenceKHR subpassAt(long index, int value)
      Sets subpass with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • inputAttachmentIndexAt

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

      public VkInputAttachmentAspectReferenceKHR inputAttachmentIndexAt(long index, int value)
      Sets inputAttachmentIndex with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • aspectMaskAt

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

      public VkInputAttachmentAspectReferenceKHR aspectMaskAt(long index, int value)
      Sets aspectMask with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this