Class VkSwapchainPresentModeInfoEXT

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

public sealed class VkSwapchainPresentModeInfoEXT extends GroupType permits VkSwapchainPresentModeInfoEXT.Buffer

Layout

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

    • LAYOUT

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

    • VkSwapchainPresentModeInfoEXT

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

    • of

      Creates VkSwapchainPresentModeInfoEXT with the given segment.
      Parameters:
      segment - the memory segment
      Returns:
      the created instance or null if the segment is NULL
    • ofNative

      public static VkSwapchainPresentModeInfoEXT ofNative(MemorySegment segment)

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

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

      public static VkSwapchainPresentModeInfoEXT.Buffer alloc(SegmentAllocator allocator, long count)
      Allocates a VkSwapchainPresentModeInfoEXT with the given segment allocator and count.
      Parameters:
      allocator - the segment allocator
      count - the count
      Returns:
      the allocated VkSwapchainPresentModeInfoEXT
    • 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 VkSwapchainPresentModeInfoEXT 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 VkSwapchainPresentModeInfoEXT swapchainCount(int value)
      Sets swapchainCount 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 VkSwapchainPresentModeInfoEXT pPresentModes(MemorySegment value)
      Sets pPresentModes with the given value.
      Parameters:
      value - the value
      Returns:
      this