Class VkConformanceVersionKHR

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

public final class VkConformanceVersionKHR extends GroupType

Layout

struct VkConformanceVersionKHR {
    uint8_t major;
    uint8_t minor;
    uint8_t subminor;
    uint8_t patch;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkConformanceVersionKHR.
    • OFFSET_major

      public static final long OFFSET_major
      The byte offset of major.
    • LAYOUT_major

      public static final MemoryLayout LAYOUT_major
      The memory layout of major.
    • VH_major

      public static final VarHandle VH_major
      The VarHandle of major of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_minor

      public static final long OFFSET_minor
      The byte offset of minor.
    • LAYOUT_minor

      public static final MemoryLayout LAYOUT_minor
      The memory layout of minor.
    • VH_minor

      public static final VarHandle VH_minor
      The VarHandle of minor of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_subminor

      public static final long OFFSET_subminor
      The byte offset of subminor.
    • LAYOUT_subminor

      public static final MemoryLayout LAYOUT_subminor
      The memory layout of subminor.
    • VH_subminor

      public static final VarHandle VH_subminor
      The VarHandle of subminor of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_patch

      public static final long OFFSET_patch
      The byte offset of patch.
    • LAYOUT_patch

      public static final MemoryLayout LAYOUT_patch
      The memory layout of patch.
    • VH_patch

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

    • VkConformanceVersionKHR

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

    • of

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

      public static VkConformanceVersionKHR ofNative(MemorySegment segment)

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

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

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

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

      public VkConformanceVersionKHR reinterpret(long count)
      Reinterprets this buffer with the given count.
      Parameters:
      count - the new count
      Returns:
      the reinterpreted buffer
    • major

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

      public byte major()
      Returns major.
      Returns:
      major
    • major

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

      public VkConformanceVersionKHR major(byte value)
      Sets major with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • minor

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

      public byte minor()
      Returns minor.
      Returns:
      minor
    • minor

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

      public VkConformanceVersionKHR minor(byte value)
      Sets minor with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • subminor

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

      public byte subminor()
      Returns subminor.
      Returns:
      subminor
    • subminor

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

      public VkConformanceVersionKHR subminor(byte value)
      Sets subminor with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • patch

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

      public byte patch()
      Returns patch.
      Returns:
      patch
    • patch

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

      public VkConformanceVersionKHR patch(byte value)
      Sets patch with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • asSlice

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

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

      Visits VkConformanceVersionKHR 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
    • majorAt

      public byte majorAt(long index)
      Returns major at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      major at the given index
    • majorAt

      public VkConformanceVersionKHR majorAt(long index, byte value)
      Sets major with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • minorAt

      public byte minorAt(long index)
      Returns minor at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      minor at the given index
    • minorAt

      public VkConformanceVersionKHR minorAt(long index, byte value)
      Sets minor with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • subminorAt

      public byte subminorAt(long index)
      Returns subminor at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      subminor at the given index
    • subminorAt

      public VkConformanceVersionKHR subminorAt(long index, byte value)
      Sets subminor with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • patchAt

      public byte patchAt(long index)
      Returns patch at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      patch at the given index
    • patchAt

      public VkConformanceVersionKHR patchAt(long index, byte value)
      Sets patch with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this