Class VkDisplayModePropertiesKHR

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

public sealed class VkDisplayModePropertiesKHR extends GroupType permits VkDisplayModePropertiesKHR.Buffer

Layout

struct VkDisplayModePropertiesKHR {
    (uint64_t) VkDisplayModeKHR displayMode;
    (struct VkDisplayModeParametersKHR) VkDisplayModeParametersKHR parameters;
};
  • Field Details

    • LAYOUT

      public static final GroupLayout LAYOUT
      The struct layout of VkDisplayModePropertiesKHR.
    • OFFSET_displayMode

      public static final long OFFSET_displayMode
      The byte offset of displayMode.
    • LAYOUT_displayMode

      public static final MemoryLayout LAYOUT_displayMode
      The memory layout of displayMode.
    • VH_displayMode

      public static final VarHandle VH_displayMode
      The VarHandle of displayMode of type (MemorySegment base, long baseOffset, long index)MemorySegment.
    • OFFSET_parameters

      public static final long OFFSET_parameters
      The byte offset of parameters.
    • LAYOUT_parameters

      public static final MemoryLayout LAYOUT_parameters
      The memory layout of parameters.
  • Constructor Details

    • VkDisplayModePropertiesKHR

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

    • of

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

      public static VkDisplayModePropertiesKHR ofNative(MemorySegment segment)

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

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

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

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

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

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

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

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

      public VkDisplayModePropertiesKHR displayMode(long value)
      Sets displayMode with the given value.
      Parameters:
      value - the value
      Returns:
      this
    • parameters

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

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

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

      public VkDisplayModePropertiesKHR parameters(MemorySegment value)
      Sets parameters with the given value.
      Parameters:
      value - the value
      Returns:
      this