Class VkPastPresentationTimingGOOGLE

java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.google.struct.VkPastPresentationTimingGOOGLE
All Implemented Interfaces:
Addressable

public final class VkPastPresentationTimingGOOGLE extends GroupType

Layout

struct VkPastPresentationTimingGOOGLE {
    uint32_t presentID;
    uint64_t desiredPresentTime;
    uint64_t actualPresentTime;
    uint64_t earliestPresentTime;
    uint64_t presentMargin;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkPastPresentationTimingGOOGLE.
    • OFFSET_presentID

      public static final long OFFSET_presentID
      The byte offset of presentID.
    • LAYOUT_presentID

      public static final MemoryLayout LAYOUT_presentID
      The memory layout of presentID.
    • VH_presentID

      public static final VarHandle VH_presentID
      The VarHandle of presentID of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_desiredPresentTime

      public static final long OFFSET_desiredPresentTime
      The byte offset of desiredPresentTime.
    • LAYOUT_desiredPresentTime

      public static final MemoryLayout LAYOUT_desiredPresentTime
      The memory layout of desiredPresentTime.
    • VH_desiredPresentTime

      public static final VarHandle VH_desiredPresentTime
      The VarHandle of desiredPresentTime of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_actualPresentTime

      public static final long OFFSET_actualPresentTime
      The byte offset of actualPresentTime.
    • LAYOUT_actualPresentTime

      public static final MemoryLayout LAYOUT_actualPresentTime
      The memory layout of actualPresentTime.
    • VH_actualPresentTime

      public static final VarHandle VH_actualPresentTime
      The VarHandle of actualPresentTime of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_earliestPresentTime

      public static final long OFFSET_earliestPresentTime
      The byte offset of earliestPresentTime.
    • LAYOUT_earliestPresentTime

      public static final MemoryLayout LAYOUT_earliestPresentTime
      The memory layout of earliestPresentTime.
    • VH_earliestPresentTime

      public static final VarHandle VH_earliestPresentTime
      The VarHandle of earliestPresentTime of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_presentMargin

      public static final long OFFSET_presentMargin
      The byte offset of presentMargin.
    • LAYOUT_presentMargin

      public static final MemoryLayout LAYOUT_presentMargin
      The memory layout of presentMargin.
    • VH_presentMargin

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

    • VkPastPresentationTimingGOOGLE

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

    • of

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

      public static VkPastPresentationTimingGOOGLE ofNative(MemorySegment segment)

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

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

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

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

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

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

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

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

      public VkPastPresentationTimingGOOGLE presentID(int value)
      Sets presentID with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • desiredPresentTime

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

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

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

      public VkPastPresentationTimingGOOGLE desiredPresentTime(long value)
      Sets desiredPresentTime with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • actualPresentTime

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

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

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

      public VkPastPresentationTimingGOOGLE actualPresentTime(long value)
      Sets actualPresentTime with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • earliestPresentTime

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

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

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

      public VkPastPresentationTimingGOOGLE earliestPresentTime(long value)
      Sets earliestPresentTime with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • presentMargin

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

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

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

      public VkPastPresentationTimingGOOGLE presentMargin(long value)
      Sets presentMargin with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • asSlice

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

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

      Visits VkPastPresentationTimingGOOGLE 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
    • presentIDAt

      public int presentIDAt(long index)
      Returns presentID at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      presentID at the given index
    • presentIDAt

      public VkPastPresentationTimingGOOGLE presentIDAt(long index, int value)
      Sets presentID with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • desiredPresentTimeAt

      public long desiredPresentTimeAt(long index)
      Returns desiredPresentTime at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      desiredPresentTime at the given index
    • desiredPresentTimeAt

      public VkPastPresentationTimingGOOGLE desiredPresentTimeAt(long index, long value)
      Sets desiredPresentTime with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • actualPresentTimeAt

      public long actualPresentTimeAt(long index)
      Returns actualPresentTime at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      actualPresentTime at the given index
    • actualPresentTimeAt

      public VkPastPresentationTimingGOOGLE actualPresentTimeAt(long index, long value)
      Sets actualPresentTime with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • earliestPresentTimeAt

      public long earliestPresentTimeAt(long index)
      Returns earliestPresentTime at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      earliestPresentTime at the given index
    • earliestPresentTimeAt

      public VkPastPresentationTimingGOOGLE earliestPresentTimeAt(long index, long value)
      Sets earliestPresentTime with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • presentMarginAt

      public long presentMarginAt(long index)
      Returns presentMargin at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      presentMargin at the given index
    • presentMarginAt

      public VkPastPresentationTimingGOOGLE presentMarginAt(long index, long value)
      Sets presentMargin with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this