Class VkRenderPassCreateInfo

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

public sealed class VkRenderPassCreateInfo extends GroupType permits VkRenderPassCreateInfo.Buffer

Layout

struct VkRenderPassCreateInfo {
    (int) VkStructureType sType;
    const void* pNext;
    ((uint32_t) VkFlags) VkRenderPassCreateFlags flags;
    uint32_t attachmentCount;
    const VkAttachmentDescription* pAttachments;
    uint32_t subpassCount;
    const VkSubpassDescription* pSubpasses;
    uint32_t dependencyCount;
    const VkSubpassDependency* pDependencies;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkRenderPassCreateInfo.
    • 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.
  • Constructor Details

    • VkRenderPassCreateInfo

      public VkRenderPassCreateInfo(MemorySegment segment)
      Creates VkRenderPassCreateInfo with the given segment.
      Parameters:
      segment - the memory segment
  • Method Details

    • of

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

      public static VkRenderPassCreateInfo ofNative(MemorySegment segment)

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

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

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

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

      public VkRenderPassCreateInfo.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 VkRenderPassCreateInfo 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 VkRenderPassCreateInfo 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 VkRenderPassCreateInfo 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 VkRenderPassCreateInfo 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 VkRenderPassCreateInfo 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 VkRenderPassCreateInfo 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 VkRenderPassCreateInfo 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 VkRenderPassCreateInfo 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 VkRenderPassCreateInfo pDependencies(MemorySegment value)
      Sets pDependencies with the given value.
      Parameters:
      value - the value
      Returns:
      this