Class VkFramebufferAttachmentsCreateInfoKHR

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

public final class VkFramebufferAttachmentsCreateInfoKHR extends GroupType

Layout

struct VkFramebufferAttachmentsCreateInfoKHR {
    (int) VkStructureType sType;
    const void* pNext;
    uint32_t attachmentImageInfoCount;
    const VkFramebufferAttachmentImageInfo* pAttachmentImageInfos;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_attachmentImageInfoCount
      The byte offset of attachmentImageInfoCount.
    • LAYOUT_attachmentImageInfoCount

      public static final MemoryLayout LAYOUT_attachmentImageInfoCount
      The memory layout of attachmentImageInfoCount.
    • VH_attachmentImageInfoCount

      public static final VarHandle VH_attachmentImageInfoCount
      The VarHandle of attachmentImageInfoCount of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pAttachmentImageInfos

      public static final long OFFSET_pAttachmentImageInfos
      The byte offset of pAttachmentImageInfos.
    • LAYOUT_pAttachmentImageInfos

      public static final MemoryLayout LAYOUT_pAttachmentImageInfos
      The memory layout of pAttachmentImageInfos.
    • VH_pAttachmentImageInfos

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

    • VkFramebufferAttachmentsCreateInfoKHR

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

    • of

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

      public static VkFramebufferAttachmentsCreateInfoKHR ofNative(MemorySegment segment)

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

      Creates VkFramebufferAttachmentsCreateInfoKHR 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 VkFramebufferAttachmentsCreateInfoKHR with the given segment allocator.
      Parameters:
      allocator - the segment allocator
      Returns:
      the allocated VkFramebufferAttachmentsCreateInfoKHR
    • alloc

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

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

      public VkFramebufferAttachmentsCreateInfoKHR 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 VkFramebufferAttachmentsCreateInfoKHR 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
    • attachmentImageInfoCount

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

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

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

      public VkFramebufferAttachmentsCreateInfoKHR attachmentImageInfoCount(int value)
      Sets attachmentImageInfoCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pAttachmentImageInfos

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

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

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

      public VkFramebufferAttachmentsCreateInfoKHR pAttachmentImageInfos(MemorySegment value)
      Sets pAttachmentImageInfos with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • asSlice

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

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

      Visits VkFramebufferAttachmentsCreateInfoKHR 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 VkFramebufferAttachmentsCreateInfoKHR 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 VkFramebufferAttachmentsCreateInfoKHR 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
    • attachmentImageInfoCountAt

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

      public VkFramebufferAttachmentsCreateInfoKHR attachmentImageInfoCountAt(long index, int value)
      Sets attachmentImageInfoCount with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • pAttachmentImageInfosAt

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

      public VkFramebufferAttachmentsCreateInfoKHR pAttachmentImageInfosAt(long index, MemorySegment value)
      Sets pAttachmentImageInfos with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this