Class VkGeometryTrianglesNV

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

public sealed class VkGeometryTrianglesNV extends GroupType permits VkGeometryTrianglesNV.Buffer

Layout

struct VkGeometryTrianglesNV {
    (int) VkStructureType sType;
    const void* pNext;
    (uint64_t) VkBuffer vertexData;
    (uint64_t) VkDeviceSize vertexOffset;
    uint32_t vertexCount;
    (uint64_t) VkDeviceSize vertexStride;
    (int) VkFormat vertexFormat;
    (uint64_t) VkBuffer indexData;
    (uint64_t) VkDeviceSize indexOffset;
    uint32_t indexCount;
    (int) VkIndexType indexType;
    (uint64_t) VkBuffer transformData;
    (uint64_t) VkDeviceSize transformOffset;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_vertexData
      The byte offset of vertexData.
    • LAYOUT_vertexData

      public static final MemoryLayout LAYOUT_vertexData
      The memory layout of vertexData.
    • VH_vertexData

      public static final VarHandle VH_vertexData
      The VarHandle of vertexData of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_vertexOffset

      public static final long OFFSET_vertexOffset
      The byte offset of vertexOffset.
    • LAYOUT_vertexOffset

      public static final MemoryLayout LAYOUT_vertexOffset
      The memory layout of vertexOffset.
    • VH_vertexOffset

      public static final VarHandle VH_vertexOffset
      The VarHandle of vertexOffset of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_vertexCount

      public static final long OFFSET_vertexCount
      The byte offset of vertexCount.
    • LAYOUT_vertexCount

      public static final MemoryLayout LAYOUT_vertexCount
      The memory layout of vertexCount.
    • VH_vertexCount

      public static final VarHandle VH_vertexCount
      The VarHandle of vertexCount of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_vertexStride

      public static final long OFFSET_vertexStride
      The byte offset of vertexStride.
    • LAYOUT_vertexStride

      public static final MemoryLayout LAYOUT_vertexStride
      The memory layout of vertexStride.
    • VH_vertexStride

      public static final VarHandle VH_vertexStride
      The VarHandle of vertexStride of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_vertexFormat

      public static final long OFFSET_vertexFormat
      The byte offset of vertexFormat.
    • LAYOUT_vertexFormat

      public static final MemoryLayout LAYOUT_vertexFormat
      The memory layout of vertexFormat.
    • VH_vertexFormat

      public static final VarHandle VH_vertexFormat
      The VarHandle of vertexFormat of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_indexData

      public static final long OFFSET_indexData
      The byte offset of indexData.
    • LAYOUT_indexData

      public static final MemoryLayout LAYOUT_indexData
      The memory layout of indexData.
    • VH_indexData

      public static final VarHandle VH_indexData
      The VarHandle of indexData of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_indexOffset

      public static final long OFFSET_indexOffset
      The byte offset of indexOffset.
    • LAYOUT_indexOffset

      public static final MemoryLayout LAYOUT_indexOffset
      The memory layout of indexOffset.
    • VH_indexOffset

      public static final VarHandle VH_indexOffset
      The VarHandle of indexOffset of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_indexCount

      public static final long OFFSET_indexCount
      The byte offset of indexCount.
    • LAYOUT_indexCount

      public static final MemoryLayout LAYOUT_indexCount
      The memory layout of indexCount.
    • VH_indexCount

      public static final VarHandle VH_indexCount
      The VarHandle of indexCount of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_indexType

      public static final long OFFSET_indexType
      The byte offset of indexType.
    • LAYOUT_indexType

      public static final MemoryLayout LAYOUT_indexType
      The memory layout of indexType.
    • VH_indexType

      public static final VarHandle VH_indexType
      The VarHandle of indexType of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_transformData

      public static final long OFFSET_transformData
      The byte offset of transformData.
    • LAYOUT_transformData

      public static final MemoryLayout LAYOUT_transformData
      The memory layout of transformData.
    • VH_transformData

      public static final VarHandle VH_transformData
      The VarHandle of transformData of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_transformOffset

      public static final long OFFSET_transformOffset
      The byte offset of transformOffset.
    • LAYOUT_transformOffset

      public static final MemoryLayout LAYOUT_transformOffset
      The memory layout of transformOffset.
    • VH_transformOffset

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

    • VkGeometryTrianglesNV

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

    • of

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

      public static VkGeometryTrianglesNV ofNative(MemorySegment segment)

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

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

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

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

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

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

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

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

      public VkGeometryTrianglesNV vertexData(long value)
      Sets vertexData with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • vertexOffset

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

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

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

      public VkGeometryTrianglesNV vertexOffset(long value)
      Sets vertexOffset with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • vertexCount

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

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

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

      public VkGeometryTrianglesNV vertexCount(int value)
      Sets vertexCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • vertexStride

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

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

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

      public VkGeometryTrianglesNV vertexStride(long value)
      Sets vertexStride with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • vertexFormat

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

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

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

      public VkGeometryTrianglesNV vertexFormat(int value)
      Sets vertexFormat with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • indexData

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

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

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

      public VkGeometryTrianglesNV indexData(long value)
      Sets indexData with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • indexOffset

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

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

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

      public VkGeometryTrianglesNV indexOffset(long value)
      Sets indexOffset with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • indexCount

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

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

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

      public VkGeometryTrianglesNV indexCount(int value)
      Sets indexCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • indexType

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

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

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

      public VkGeometryTrianglesNV indexType(int value)
      Sets indexType with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • transformData

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

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

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

      public VkGeometryTrianglesNV transformData(long value)
      Sets transformData with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • transformOffset

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

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

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

      public VkGeometryTrianglesNV transformOffset(long value)
      Sets transformOffset with the given value.
      Parameters:
      value - the value
      Returns:
      this