Class VkCheckpointDataNV

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

public sealed class VkCheckpointDataNV extends GroupType permits VkCheckpointDataNV.Buffer

Layout

struct VkCheckpointDataNV {
    (int) VkStructureType sType;
    void* pNext;
    (int) VkPipelineStageFlagBits stage;
    void* pCheckpointMarker;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_stage
      The byte offset of stage.
    • LAYOUT_stage

      public static final MemoryLayout LAYOUT_stage
      The memory layout of stage.
    • VH_stage

      public static final VarHandle VH_stage
      The VarHandle of stage of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pCheckpointMarker

      public static final long OFFSET_pCheckpointMarker
      The byte offset of pCheckpointMarker.
    • LAYOUT_pCheckpointMarker

      public static final MemoryLayout LAYOUT_pCheckpointMarker
      The memory layout of pCheckpointMarker.
    • VH_pCheckpointMarker

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

    • VkCheckpointDataNV

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

    • of

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

      public static VkCheckpointDataNV ofNative(MemorySegment segment)

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

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

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

      public VkCheckpointDataNV copyFrom(VkCheckpointDataNV src)
      Copies from the given source.
      Parameters:
      src - the source
      Returns:
      this
    • asBuffer

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

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

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

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

      public VkCheckpointDataNV stage(int value)
      Sets stage with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pCheckpointMarker

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

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

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

      public VkCheckpointDataNV pCheckpointMarker(MemorySegment value)
      Sets pCheckpointMarker with the given value.
      Parameters:
      value - the value
      Returns:
      this