Class VkPresentTimesInfoGOOGLE

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

public sealed class VkPresentTimesInfoGOOGLE extends GroupType permits VkPresentTimesInfoGOOGLE.Buffer

Layout

struct VkPresentTimesInfoGOOGLE {
    (int) VkStructureType sType;
    const void* pNext;
    uint32_t swapchainCount;
    const VkPresentTimeGOOGLE* pTimes;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_swapchainCount
      The byte offset of swapchainCount.
    • LAYOUT_swapchainCount

      public static final MemoryLayout LAYOUT_swapchainCount
      The memory layout of swapchainCount.
    • VH_swapchainCount

      public static final VarHandle VH_swapchainCount
      The VarHandle of swapchainCount of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pTimes

      public static final long OFFSET_pTimes
      The byte offset of pTimes.
    • LAYOUT_pTimes

      public static final MemoryLayout LAYOUT_pTimes
      The memory layout of pTimes.
    • VH_pTimes

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

    • VkPresentTimesInfoGOOGLE

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

    • of

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

      public static VkPresentTimesInfoGOOGLE ofNative(MemorySegment segment)

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

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

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

      Copies from the given source.
      Parameters:
      src - the source
      Returns:
      this
    • 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 VkPresentTimesInfoGOOGLE 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

      Sets pNext with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • swapchainCount

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

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

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

      public VkPresentTimesInfoGOOGLE swapchainCount(int value)
      Sets swapchainCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pTimes

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

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

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

      public VkPresentTimesInfoGOOGLE pTimes(MemorySegment value)
      Sets pTimes with the given value.
      Parameters:
      value - the value
      Returns:
      this