Class VkPastPresentationTimingGOOGLE

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

public sealed class VkPastPresentationTimingGOOGLE extends GroupType permits VkPastPresentationTimingGOOGLE.Buffer

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)
      Creates VkPastPresentationTimingGOOGLE with the given segment.
      Parameters:
      segment - the memory segment
  • Method Details

    • of

      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.Buffer 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.Buffer 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
    • asBuffer

      Converts this instance to a buffer.
      Returns:
      the 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