Class VkRenderPassCreateInfo2

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

public sealed class VkRenderPassCreateInfo2 extends GroupType permits VkRenderPassCreateInfo2.Buffer

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)
      Creates VkRenderPassCreateInfo2 with the given segment.
      Parameters:
      segment - the memory segment
  • Method Details

    • of

      public static VkRenderPassCreateInfo2.Buffer 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.Buffer 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.Buffer 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
    • asBuffer

      public VkRenderPassCreateInfo2.Buffer 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 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