Class VkWriteDescriptorSetAccelerationStructureKHR

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

public sealed class VkWriteDescriptorSetAccelerationStructureKHR extends GroupType permits VkWriteDescriptorSetAccelerationStructureKHR.Buffer

Layout Link icon

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

    • LAYOUT Link icon

      public static final GroupLayout LAYOUT
      The struct layout of VkWriteDescriptorSetAccelerationStructureKHR.
    • OFFSET_sType Link icon

      public static final long OFFSET_sType
      The byte offset of sType.
    • LAYOUT_sType Link icon

      public static final MemoryLayout LAYOUT_sType
      The memory layout of sType.
    • VH_sType Link icon

      public static final VarHandle VH_sType
      The VarHandle of sType of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pNext Link icon

      public static final long OFFSET_pNext
      The byte offset of pNext.
    • LAYOUT_pNext Link icon

      public static final MemoryLayout LAYOUT_pNext
      The memory layout of pNext.
    • VH_pNext Link icon

      public static final VarHandle VH_pNext
      The VarHandle of pNext of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_accelerationStructureCount Link icon

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

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

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

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

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

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

    • VkWriteDescriptorSetAccelerationStructureKHR Link icon

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

    • of Link icon

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

      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 Link icon

      public static VkWriteDescriptorSetAccelerationStructureKHR.Buffer 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 Link icon

      Allocates a VkWriteDescriptorSetAccelerationStructureKHR with the given segment allocator.
      Parameters:
      allocator - the segment allocator
      Returns:
      the allocated VkWriteDescriptorSetAccelerationStructureKHR
    • alloc Link icon

      public static VkWriteDescriptorSetAccelerationStructureKHR.Buffer 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 Link icon

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

      Converts this instance to a buffer.
      Returns:
      the buffer
    • sType Link icon

      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 Link icon

      public int sType()
      Returns sType.
      Returns:
      sType
    • sType Link icon

      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 Link icon

      Sets sType with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pNext Link icon

      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 Link icon

      public MemorySegment pNext()
      Returns pNext.
      Returns:
      pNext
    • pNext Link icon

      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 Link icon

      Sets pNext with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • accelerationStructureCount Link icon

      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 Link icon

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

      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 Link icon

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

      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 Link icon

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

      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 Link icon

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