Class VkRenderPassCreateInfo2

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

public final class VkRenderPassCreateInfo2 extends GroupType

Layout

struct VkRenderPassCreateInfo2 {
    (int) VkStructureType sType;
    const void* pNext;
    ((uint32_t) VkFlags) VkRenderPassCreateFlags flags;
    uint32_t attachmentCount;
    const VkAttachmentDescription2* pAttachments;
    uint32_t subpassCount;
    const VkSubpassDescription2* pSubpasses;
    uint32_t dependencyCount;
    const VkSubpassDependency2* pDependencies;
    uint32_t correlatedViewMaskCount;
    const uint32_t* pCorrelatedViewMasks;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_flags
      The byte offset of flags.
    • LAYOUT_flags

      public static final MemoryLayout LAYOUT_flags
      The memory layout of flags.
    • VH_flags

      public static final VarHandle VH_flags
      The VarHandle of flags of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_attachmentCount

      public static final long OFFSET_attachmentCount
      The byte offset of attachmentCount.
    • LAYOUT_attachmentCount

      public static final MemoryLayout LAYOUT_attachmentCount
      The memory layout of attachmentCount.
    • VH_attachmentCount

      public static final VarHandle VH_attachmentCount
      The VarHandle of attachmentCount of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pAttachments

      public static final long OFFSET_pAttachments
      The byte offset of pAttachments.
    • LAYOUT_pAttachments

      public static final MemoryLayout LAYOUT_pAttachments
      The memory layout of pAttachments.
    • VH_pAttachments

      public static final VarHandle VH_pAttachments
      The VarHandle of pAttachments of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_subpassCount

      public static final long OFFSET_subpassCount
      The byte offset of subpassCount.
    • LAYOUT_subpassCount

      public static final MemoryLayout LAYOUT_subpassCount
      The memory layout of subpassCount.
    • VH_subpassCount

      public static final VarHandle VH_subpassCount
      The VarHandle of subpassCount of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pSubpasses

      public static final long OFFSET_pSubpasses
      The byte offset of pSubpasses.
    • LAYOUT_pSubpasses

      public static final MemoryLayout LAYOUT_pSubpasses
      The memory layout of pSubpasses.
    • VH_pSubpasses

      public static final VarHandle VH_pSubpasses
      The VarHandle of pSubpasses of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_dependencyCount

      public static final long OFFSET_dependencyCount
      The byte offset of dependencyCount.
    • LAYOUT_dependencyCount

      public static final MemoryLayout LAYOUT_dependencyCount
      The memory layout of dependencyCount.
    • VH_dependencyCount

      public static final VarHandle VH_dependencyCount
      The VarHandle of dependencyCount of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pDependencies

      public static final long OFFSET_pDependencies
      The byte offset of pDependencies.
    • LAYOUT_pDependencies

      public static final MemoryLayout LAYOUT_pDependencies
      The memory layout of pDependencies.
    • VH_pDependencies

      public static final VarHandle VH_pDependencies
      The VarHandle of pDependencies of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_correlatedViewMaskCount

      public static final long OFFSET_correlatedViewMaskCount
      The byte offset of correlatedViewMaskCount.
    • LAYOUT_correlatedViewMaskCount

      public static final MemoryLayout LAYOUT_correlatedViewMaskCount
      The memory layout of correlatedViewMaskCount.
    • VH_correlatedViewMaskCount

      public static final VarHandle VH_correlatedViewMaskCount
      The VarHandle of correlatedViewMaskCount of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pCorrelatedViewMasks

      public static final long OFFSET_pCorrelatedViewMasks
      The byte offset of pCorrelatedViewMasks.
    • LAYOUT_pCorrelatedViewMasks

      public static final MemoryLayout LAYOUT_pCorrelatedViewMasks
      The memory layout of pCorrelatedViewMasks.
    • VH_pCorrelatedViewMasks

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

    • VkRenderPassCreateInfo2

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

    • of

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

      public static VkRenderPassCreateInfo2 ofNative(MemorySegment segment)

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

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

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

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

      public VkRenderPassCreateInfo2 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 VkRenderPassCreateInfo2 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 VkRenderPassCreateInfo2 pNext(MemorySegment value)
      Sets pNext with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • flags

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

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

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

      public VkRenderPassCreateInfo2 flags(int value)
      Sets flags with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • attachmentCount

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

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

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

      public VkRenderPassCreateInfo2 attachmentCount(int value)
      Sets attachmentCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pAttachments

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

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

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

      public VkRenderPassCreateInfo2 pAttachments(MemorySegment value)
      Sets pAttachments with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • subpassCount

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

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

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

      public VkRenderPassCreateInfo2 subpassCount(int value)
      Sets subpassCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pSubpasses

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

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

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

      public VkRenderPassCreateInfo2 pSubpasses(MemorySegment value)
      Sets pSubpasses with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • dependencyCount

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

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

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

      public VkRenderPassCreateInfo2 dependencyCount(int value)
      Sets dependencyCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pDependencies

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

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

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

      public VkRenderPassCreateInfo2 pDependencies(MemorySegment value)
      Sets pDependencies with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • correlatedViewMaskCount

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

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

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

      public VkRenderPassCreateInfo2 correlatedViewMaskCount(int value)
      Sets correlatedViewMaskCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pCorrelatedViewMasks

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

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

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

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

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

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

      Visits VkRenderPassCreateInfo2 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 VkRenderPassCreateInfo2 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 VkRenderPassCreateInfo2 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
    • flagsAt

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

      public VkRenderPassCreateInfo2 flagsAt(long index, int value)
      Sets flags with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • attachmentCountAt

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

      public VkRenderPassCreateInfo2 attachmentCountAt(long index, int value)
      Sets attachmentCount with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • pAttachmentsAt

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

      public VkRenderPassCreateInfo2 pAttachmentsAt(long index, MemorySegment value)
      Sets pAttachments with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • subpassCountAt

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

      public VkRenderPassCreateInfo2 subpassCountAt(long index, int value)
      Sets subpassCount with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • pSubpassesAt

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

      public VkRenderPassCreateInfo2 pSubpassesAt(long index, MemorySegment value)
      Sets pSubpasses with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • dependencyCountAt

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

      public VkRenderPassCreateInfo2 dependencyCountAt(long index, int value)
      Sets dependencyCount with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • pDependenciesAt

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

      public VkRenderPassCreateInfo2 pDependenciesAt(long index, MemorySegment value)
      Sets pDependencies with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • correlatedViewMaskCountAt

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

      public VkRenderPassCreateInfo2 correlatedViewMaskCountAt(long index, int value)
      Sets correlatedViewMaskCount with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • pCorrelatedViewMasksAt

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

      public VkRenderPassCreateInfo2 pCorrelatedViewMasksAt(long index, MemorySegment value)
      Sets pCorrelatedViewMasks with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this