Class VkBuildPartitionedAccelerationStructureInfoNV

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

public sealed class VkBuildPartitionedAccelerationStructureInfoNV extends GroupType permits VkBuildPartitionedAccelerationStructureInfoNV.Buffer

Layout

struct VkBuildPartitionedAccelerationStructureInfoNV {
    (int) VkStructureType sType;
    void* pNext;
    (struct VkPartitionedAccelerationStructureInstancesInputNV) VkPartitionedAccelerationStructureInstancesInputNV input;
    (uint64_t) VkDeviceAddress srcAccelerationStructureData;
    (uint64_t) VkDeviceAddress dstAccelerationStructureData;
    (uint64_t) VkDeviceAddress scratchData;
    (uint64_t) VkDeviceAddress srcInfos;
    (uint64_t) VkDeviceAddress srcInfosCount;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_input
      The byte offset of input.
    • LAYOUT_input

      public static final MemoryLayout LAYOUT_input
      The memory layout of input.
    • OFFSET_srcAccelerationStructureData

      public static final long OFFSET_srcAccelerationStructureData
      The byte offset of srcAccelerationStructureData.
    • LAYOUT_srcAccelerationStructureData

      public static final MemoryLayout LAYOUT_srcAccelerationStructureData
      The memory layout of srcAccelerationStructureData.
    • VH_srcAccelerationStructureData

      public static final VarHandle VH_srcAccelerationStructureData
      The VarHandle of srcAccelerationStructureData of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_dstAccelerationStructureData

      public static final long OFFSET_dstAccelerationStructureData
      The byte offset of dstAccelerationStructureData.
    • LAYOUT_dstAccelerationStructureData

      public static final MemoryLayout LAYOUT_dstAccelerationStructureData
      The memory layout of dstAccelerationStructureData.
    • VH_dstAccelerationStructureData

      public static final VarHandle VH_dstAccelerationStructureData
      The VarHandle of dstAccelerationStructureData of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • 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.
    • VH_scratchData

      public static final VarHandle VH_scratchData
      The VarHandle of scratchData of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_srcInfos

      public static final long OFFSET_srcInfos
      The byte offset of srcInfos.
    • LAYOUT_srcInfos

      public static final MemoryLayout LAYOUT_srcInfos
      The memory layout of srcInfos.
    • VH_srcInfos

      public static final VarHandle VH_srcInfos
      The VarHandle of srcInfos of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_srcInfosCount

      public static final long OFFSET_srcInfosCount
      The byte offset of srcInfosCount.
    • LAYOUT_srcInfosCount

      public static final MemoryLayout LAYOUT_srcInfosCount
      The memory layout of srcInfosCount.
    • VH_srcInfosCount

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

    • VkBuildPartitionedAccelerationStructureInfoNV

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

    • of

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

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

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

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

      public static VkBuildPartitionedAccelerationStructureInfoNV allocInit(SegmentAllocator allocator, int sType, MemorySegment pNext, MemorySegment input, long srcAccelerationStructureData, long dstAccelerationStructureData, long scratchData, long srcInfos, long srcInfosCount)
      Allocates a VkBuildPartitionedAccelerationStructureInfoNV with the given segment allocator and arguments like initializer list.
      Parameters:
      allocator - the segment allocator
      sType - sType
      pNext - pNext
      input - input
      srcAccelerationStructureData - srcAccelerationStructureData
      dstAccelerationStructureData - dstAccelerationStructureData
      scratchData - scratchData
      srcInfos - srcInfos
      srcInfosCount - srcInfosCount
      Returns:
      the allocated VkBuildPartitionedAccelerationStructureInfoNV
    • allocInit

      public static VkBuildPartitionedAccelerationStructureInfoNV allocInit(SegmentAllocator allocator, int sType, MemorySegment pNext, MemorySegment input, long srcAccelerationStructureData, long dstAccelerationStructureData, long scratchData, long srcInfos)
      Allocates a VkBuildPartitionedAccelerationStructureInfoNV with the given segment allocator and arguments like initializer list.
      Parameters:
      allocator - the segment allocator
      sType - sType
      pNext - pNext
      input - input
      srcAccelerationStructureData - srcAccelerationStructureData
      dstAccelerationStructureData - dstAccelerationStructureData
      scratchData - scratchData
      srcInfos - srcInfos
      Returns:
      the allocated VkBuildPartitionedAccelerationStructureInfoNV
    • allocInit

      public static VkBuildPartitionedAccelerationStructureInfoNV allocInit(SegmentAllocator allocator, int sType, MemorySegment pNext, MemorySegment input, long srcAccelerationStructureData, long dstAccelerationStructureData, long scratchData)
      Allocates a VkBuildPartitionedAccelerationStructureInfoNV with the given segment allocator and arguments like initializer list.
      Parameters:
      allocator - the segment allocator
      sType - sType
      pNext - pNext
      input - input
      srcAccelerationStructureData - srcAccelerationStructureData
      dstAccelerationStructureData - dstAccelerationStructureData
      scratchData - scratchData
      Returns:
      the allocated VkBuildPartitionedAccelerationStructureInfoNV
    • allocInit

      public static VkBuildPartitionedAccelerationStructureInfoNV allocInit(SegmentAllocator allocator, int sType, MemorySegment pNext, MemorySegment input, long srcAccelerationStructureData, long dstAccelerationStructureData)
      Allocates a VkBuildPartitionedAccelerationStructureInfoNV with the given segment allocator and arguments like initializer list.
      Parameters:
      allocator - the segment allocator
      sType - sType
      pNext - pNext
      input - input
      srcAccelerationStructureData - srcAccelerationStructureData
      dstAccelerationStructureData - dstAccelerationStructureData
      Returns:
      the allocated VkBuildPartitionedAccelerationStructureInfoNV
    • allocInit

      public static VkBuildPartitionedAccelerationStructureInfoNV allocInit(SegmentAllocator allocator, int sType, MemorySegment pNext, MemorySegment input, long srcAccelerationStructureData)
      Allocates a VkBuildPartitionedAccelerationStructureInfoNV with the given segment allocator and arguments like initializer list.
      Parameters:
      allocator - the segment allocator
      sType - sType
      pNext - pNext
      input - input
      srcAccelerationStructureData - srcAccelerationStructureData
      Returns:
      the allocated VkBuildPartitionedAccelerationStructureInfoNV
    • allocInit

      public static VkBuildPartitionedAccelerationStructureInfoNV allocInit(SegmentAllocator allocator, int sType, MemorySegment pNext, MemorySegment input)
      Allocates a VkBuildPartitionedAccelerationStructureInfoNV with the given segment allocator and arguments like initializer list.
      Parameters:
      allocator - the segment allocator
      sType - sType
      pNext - pNext
      input - input
      Returns:
      the allocated VkBuildPartitionedAccelerationStructureInfoNV
    • allocInit

      public static VkBuildPartitionedAccelerationStructureInfoNV allocInit(SegmentAllocator allocator, int sType, MemorySegment pNext)
      Allocates a VkBuildPartitionedAccelerationStructureInfoNV with the given segment allocator and arguments like initializer list.
      Parameters:
      allocator - the segment allocator
      sType - sType
      pNext - pNext
      Returns:
      the allocated VkBuildPartitionedAccelerationStructureInfoNV
    • allocInit

      public static VkBuildPartitionedAccelerationStructureInfoNV allocInit(SegmentAllocator allocator, int sType)
      Allocates a VkBuildPartitionedAccelerationStructureInfoNV with the given segment allocator and arguments like initializer list.
      Parameters:
      allocator - the segment allocator
      sType - sType
      Returns:
      the allocated VkBuildPartitionedAccelerationStructureInfoNV
    • copyFrom

      Copies from the given source.
      Parameters:
      src - the source
      Returns:
      this
    • 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

      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
    • input

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

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

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

      Sets input with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • srcAccelerationStructureData

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

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

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

      public VkBuildPartitionedAccelerationStructureInfoNV srcAccelerationStructureData(long value)
      Sets srcAccelerationStructureData with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • dstAccelerationStructureData

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

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

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

      public VkBuildPartitionedAccelerationStructureInfoNV dstAccelerationStructureData(long value)
      Sets dstAccelerationStructureData with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • scratchData

      public static long 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 long scratchData()
      Returns scratchData.
      Returns:
      scratchData
    • scratchData

      public static void scratchData(MemorySegment segment, long index, long 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 VkBuildPartitionedAccelerationStructureInfoNV scratchData(long value)
      Sets scratchData with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • srcInfos

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

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

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

      public VkBuildPartitionedAccelerationStructureInfoNV srcInfos(long value)
      Sets srcInfos with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • srcInfosCount

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

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

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

      public VkBuildPartitionedAccelerationStructureInfoNV srcInfosCount(long value)
      Sets srcInfosCount with the given value.
      Parameters:
      value - the value
      Returns:
      this