Class VkWriteDescriptorSetAccelerationStructureKHR

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

public final class VkWriteDescriptorSetAccelerationStructureKHR extends GroupType

Layout

struct VkWriteDescriptorSetAccelerationStructureKHR {
    (int) VkStructureType sType;
    const void* pNext;
    uint32_t accelerationStructureCount;
    const VkAccelerationStructureKHR* pAccelerationStructures;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_accelerationStructureCount
      The byte offset of accelerationStructureCount.
    • LAYOUT_accelerationStructureCount

      public static final MemoryLayout LAYOUT_accelerationStructureCount
      The memory layout of accelerationStructureCount.
    • VH_accelerationStructureCount

      public static final VarHandle VH_accelerationStructureCount
      The VarHandle of accelerationStructureCount of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pAccelerationStructures

      public static final long OFFSET_pAccelerationStructures
      The byte offset of pAccelerationStructures.
    • LAYOUT_pAccelerationStructures

      public static final MemoryLayout LAYOUT_pAccelerationStructures
      The memory layout of pAccelerationStructures.
    • VH_pAccelerationStructures

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

    • VkWriteDescriptorSetAccelerationStructureKHR

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

    • of

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

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

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

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

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

      public VkWriteDescriptorSetAccelerationStructureKHR 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

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

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

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

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

      public VkWriteDescriptorSetAccelerationStructureKHR accelerationStructureCount(int value)
      Sets accelerationStructureCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pAccelerationStructures

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

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

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

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

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

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

      Visits VkWriteDescriptorSetAccelerationStructureKHR 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 VkWriteDescriptorSetAccelerationStructureKHR 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 VkWriteDescriptorSetAccelerationStructureKHR 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
    • accelerationStructureCountAt

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

      public VkWriteDescriptorSetAccelerationStructureKHR accelerationStructureCountAt(long index, int value)
      Sets accelerationStructureCount with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • pAccelerationStructuresAt

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

      public VkWriteDescriptorSetAccelerationStructureKHR pAccelerationStructuresAt(long index, MemorySegment value)
      Sets pAccelerationStructures with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this