Class VkMicromapBuildInfoEXT

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

public sealed class VkMicromapBuildInfoEXT extends GroupType permits VkMicromapBuildInfoEXT.Buffer

Layout

struct VkMicromapBuildInfoEXT {
    (int) VkStructureType sType;
    const void* pNext;
    (int) VkMicromapTypeEXT type;
    ((uint32_t) VkFlags) VkBuildMicromapFlagsEXT flags;
    (int) VkBuildMicromapModeEXT mode;
    (uint64_t) VkMicromapEXT dstMicromap;
    uint32_t usageCountsCount;
    const VkMicromapUsageEXT* pUsageCounts;
    const VkMicromapUsageEXT* const * ppUsageCounts;
    (union VkDeviceOrHostAddressConstKHR) VkDeviceOrHostAddressConstKHR data;
    (union VkDeviceOrHostAddressKHR) VkDeviceOrHostAddressKHR scratchData;
    (union VkDeviceOrHostAddressConstKHR) VkDeviceOrHostAddressConstKHR triangleArray;
    (uint64_t) VkDeviceSize triangleArrayStride;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_type
      The byte offset of type.
    • LAYOUT_type

      public static final MemoryLayout LAYOUT_type
      The memory layout of type.
    • VH_type

      public static final VarHandle VH_type
      The VarHandle of type 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_mode

      public static final long OFFSET_mode
      The byte offset of mode.
    • LAYOUT_mode

      public static final MemoryLayout LAYOUT_mode
      The memory layout of mode.
    • VH_mode

      public static final VarHandle VH_mode
      The VarHandle of mode of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_dstMicromap

      public static final long OFFSET_dstMicromap
      The byte offset of dstMicromap.
    • LAYOUT_dstMicromap

      public static final MemoryLayout LAYOUT_dstMicromap
      The memory layout of dstMicromap.
    • VH_dstMicromap

      public static final VarHandle VH_dstMicromap
      The VarHandle of dstMicromap of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_usageCountsCount

      public static final long OFFSET_usageCountsCount
      The byte offset of usageCountsCount.
    • LAYOUT_usageCountsCount

      public static final MemoryLayout LAYOUT_usageCountsCount
      The memory layout of usageCountsCount.
    • VH_usageCountsCount

      public static final VarHandle VH_usageCountsCount
      The VarHandle of usageCountsCount of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pUsageCounts

      public static final long OFFSET_pUsageCounts
      The byte offset of pUsageCounts.
    • LAYOUT_pUsageCounts

      public static final MemoryLayout LAYOUT_pUsageCounts
      The memory layout of pUsageCounts.
    • VH_pUsageCounts

      public static final VarHandle VH_pUsageCounts
      The VarHandle of pUsageCounts of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_ppUsageCounts

      public static final long OFFSET_ppUsageCounts
      The byte offset of ppUsageCounts.
    • LAYOUT_ppUsageCounts

      public static final MemoryLayout LAYOUT_ppUsageCounts
      The memory layout of ppUsageCounts.
    • VH_ppUsageCounts

      public static final VarHandle VH_ppUsageCounts
      The VarHandle of ppUsageCounts of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_data

      public static final long OFFSET_data
      The byte offset of data.
    • LAYOUT_data

      public static final MemoryLayout LAYOUT_data
      The memory layout of data.
    • OFFSET_scratchData

      public static final long OFFSET_scratchData
      The byte offset of scratchData.
    • LAYOUT_scratchData

      public static final MemoryLayout LAYOUT_scratchData
      The memory layout of scratchData.
    • OFFSET_triangleArray

      public static final long OFFSET_triangleArray
      The byte offset of triangleArray.
    • LAYOUT_triangleArray

      public static final MemoryLayout LAYOUT_triangleArray
      The memory layout of triangleArray.
    • OFFSET_triangleArrayStride

      public static final long OFFSET_triangleArrayStride
      The byte offset of triangleArrayStride.
    • LAYOUT_triangleArrayStride

      public static final MemoryLayout LAYOUT_triangleArrayStride
      The memory layout of triangleArrayStride.
    • VH_triangleArrayStride

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

    • VkMicromapBuildInfoEXT

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

    • of

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

      public static VkMicromapBuildInfoEXT ofNative(MemorySegment segment)

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

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

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

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

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

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

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

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

      public VkMicromapBuildInfoEXT type(int value)
      Sets type 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 VkMicromapBuildInfoEXT flags(int value)
      Sets flags with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • mode

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

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

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

      public VkMicromapBuildInfoEXT mode(int value)
      Sets mode with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • dstMicromap

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

      public long dstMicromap()
      Returns dstMicromap.
      Returns:
      dstMicromap
    • dstMicromap

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

      public VkMicromapBuildInfoEXT dstMicromap(long value)
      Sets dstMicromap with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • usageCountsCount

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

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

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

      public VkMicromapBuildInfoEXT usageCountsCount(int value)
      Sets usageCountsCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pUsageCounts

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

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

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

      public VkMicromapBuildInfoEXT pUsageCounts(MemorySegment value)
      Sets pUsageCounts with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • ppUsageCounts

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

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

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

      public VkMicromapBuildInfoEXT ppUsageCounts(MemorySegment value)
      Sets ppUsageCounts with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • data

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

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

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

      Sets data with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • scratchData

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

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

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

      public VkMicromapBuildInfoEXT scratchData(MemorySegment value)
      Sets scratchData with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • triangleArray

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

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

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

      public VkMicromapBuildInfoEXT triangleArray(MemorySegment value)
      Sets triangleArray with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • triangleArrayStride

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

      public long triangleArrayStride()
      Returns triangleArrayStride.
      Returns:
      triangleArrayStride
    • triangleArrayStride

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

      public VkMicromapBuildInfoEXT triangleArrayStride(long value)
      Sets triangleArrayStride with the given value.
      Parameters:
      value - the value
      Returns:
      this