Class VkAccelerationStructureCreateInfoKHR

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

public sealed class VkAccelerationStructureCreateInfoKHR extends GroupType permits VkAccelerationStructureCreateInfoKHR.Buffer

Layout

struct VkAccelerationStructureCreateInfoKHR {
    (int) VkStructureType sType;
    const void* pNext;
    ((uint32_t) VkFlags) VkAccelerationStructureCreateFlagsKHR createFlags;
    (uint64_t) VkBuffer buffer;
    (uint64_t) VkDeviceSize offset;
    (uint64_t) VkDeviceSize size;
    (int) VkAccelerationStructureTypeKHR type;
    (uint64_t) VkDeviceAddress deviceAddress;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_createFlags
      The byte offset of createFlags.
    • LAYOUT_createFlags

      public static final MemoryLayout LAYOUT_createFlags
      The memory layout of createFlags.
    • VH_createFlags

      public static final VarHandle VH_createFlags
      The VarHandle of createFlags of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_buffer

      public static final long OFFSET_buffer
      The byte offset of buffer.
    • LAYOUT_buffer

      public static final MemoryLayout LAYOUT_buffer
      The memory layout of buffer.
    • VH_buffer

      public static final VarHandle VH_buffer
      The VarHandle of buffer of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_offset

      public static final long OFFSET_offset
      The byte offset of offset.
    • LAYOUT_offset

      public static final MemoryLayout LAYOUT_offset
      The memory layout of offset.
    • VH_offset

      public static final VarHandle VH_offset
      The VarHandle of offset of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_size

      public static final long OFFSET_size
      The byte offset of size.
    • LAYOUT_size

      public static final MemoryLayout LAYOUT_size
      The memory layout of size.
    • VH_size

      public static final VarHandle VH_size
      The VarHandle of size 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_deviceAddress

      public static final long OFFSET_deviceAddress
      The byte offset of deviceAddress.
    • LAYOUT_deviceAddress

      public static final MemoryLayout LAYOUT_deviceAddress
      The memory layout of deviceAddress.
    • VH_deviceAddress

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

    • VkAccelerationStructureCreateInfoKHR

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

    • of

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

      public static VkAccelerationStructureCreateInfoKHR ofNative(MemorySegment segment)

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

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

      public static VkAccelerationStructureCreateInfoKHR.Buffer alloc(SegmentAllocator allocator, long count)
      Allocates a VkAccelerationStructureCreateInfoKHR with the given segment allocator and count.
      Parameters:
      allocator - the segment allocator
      count - the count
      Returns:
      the allocated VkAccelerationStructureCreateInfoKHR
    • 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

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

      Sets pNext with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • createFlags

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

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

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

      public VkAccelerationStructureCreateInfoKHR createFlags(int value)
      Sets createFlags with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • buffer

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

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

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

      public VkAccelerationStructureCreateInfoKHR buffer(long value)
      Sets buffer with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • offset

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

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

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

      public VkAccelerationStructureCreateInfoKHR offset(long value)
      Sets offset with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • size

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

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

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

      public VkAccelerationStructureCreateInfoKHR size(long value)
      Sets size 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 VkAccelerationStructureCreateInfoKHR type(int value)
      Sets type with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • deviceAddress

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

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

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

      public VkAccelerationStructureCreateInfoKHR deviceAddress(long value)
      Sets deviceAddress with the given value.
      Parameters:
      value - the value
      Returns:
      this