Class VkDisplayPlanePropertiesKHR

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

public sealed class VkDisplayPlanePropertiesKHR extends GroupType permits VkDisplayPlanePropertiesKHR.Buffer

Layout

struct VkDisplayPlanePropertiesKHR {
    (uint64_t) VkDisplayKHR currentDisplay;
    uint32_t currentStackIndex;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkDisplayPlanePropertiesKHR.
    • OFFSET_currentDisplay

      public static final long OFFSET_currentDisplay
      The byte offset of currentDisplay.
    • LAYOUT_currentDisplay

      public static final MemoryLayout LAYOUT_currentDisplay
      The memory layout of currentDisplay.
    • VH_currentDisplay

      public static final VarHandle VH_currentDisplay
      The VarHandle of currentDisplay of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_currentStackIndex

      public static final long OFFSET_currentStackIndex
      The byte offset of currentStackIndex.
    • LAYOUT_currentStackIndex

      public static final MemoryLayout LAYOUT_currentStackIndex
      The memory layout of currentStackIndex.
    • VH_currentStackIndex

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

    • VkDisplayPlanePropertiesKHR

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

    • of

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

      public static VkDisplayPlanePropertiesKHR ofNative(MemorySegment segment)

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

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

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

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

      Converts this instance to a buffer.
      Returns:
      the buffer
    • currentDisplay

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

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

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

      public VkDisplayPlanePropertiesKHR currentDisplay(long value)
      Sets currentDisplay with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • currentStackIndex

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

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

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

      public VkDisplayPlanePropertiesKHR currentStackIndex(int value)
      Sets currentStackIndex with the given value.
      Parameters:
      value - the value
      Returns:
      this