Class VkLatencySurfaceCapabilitiesNV

java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.nv.struct.VkLatencySurfaceCapabilitiesNV
All Implemented Interfaces:
Addressable

public final class VkLatencySurfaceCapabilitiesNV extends GroupType

Layout

struct VkLatencySurfaceCapabilitiesNV {
    (int) VkStructureType sType;
    const void* pNext;
    uint32_t presentModeCount;
    VkPresentModeKHR* pPresentModes;
};
  • Field Details

    • LAYOUT

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

      public static final long OFFSET_presentModeCount
      The byte offset of presentModeCount.
    • LAYOUT_presentModeCount

      public static final MemoryLayout LAYOUT_presentModeCount
      The memory layout of presentModeCount.
    • VH_presentModeCount

      public static final VarHandle VH_presentModeCount
      The VarHandle of presentModeCount of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_pPresentModes

      public static final long OFFSET_pPresentModes
      The byte offset of pPresentModes.
    • LAYOUT_pPresentModes

      public static final MemoryLayout LAYOUT_pPresentModes
      The memory layout of pPresentModes.
    • VH_pPresentModes

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

    • VkLatencySurfaceCapabilitiesNV

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

    • of

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

      public static VkLatencySurfaceCapabilitiesNV ofNative(MemorySegment segment)

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

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

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

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

      public VkLatencySurfaceCapabilitiesNV reinterpret(long count)
      Reinterprets this buffer with the given count.
      Parameters:
      count - the new count
      Returns:
      the reinterpreted 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 VkLatencySurfaceCapabilitiesNV 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
    • presentModeCount

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

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

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

      public VkLatencySurfaceCapabilitiesNV presentModeCount(int value)
      Sets presentModeCount with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • pPresentModes

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

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

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

      public VkLatencySurfaceCapabilitiesNV pPresentModes(MemorySegment value)
      Sets pPresentModes with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • asSlice

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

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

      Visits VkLatencySurfaceCapabilitiesNV 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
    • sTypeAt

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

      public VkLatencySurfaceCapabilitiesNV sTypeAt(long index, int value)
      Sets sType with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • pNextAt

      public MemorySegment pNextAt(long index)
      Returns pNext at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      pNext at the given index
    • pNextAt

      public VkLatencySurfaceCapabilitiesNV pNextAt(long index, MemorySegment value)
      Sets pNext with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • presentModeCountAt

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

      public VkLatencySurfaceCapabilitiesNV presentModeCountAt(long index, int value)
      Sets presentModeCount with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • pPresentModesAt

      public MemorySegment pPresentModesAt(long index)
      Returns pPresentModes at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      pPresentModes at the given index
    • pPresentModesAt

      public VkLatencySurfaceCapabilitiesNV pPresentModesAt(long index, MemorySegment value)
      Sets pPresentModes with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this