Class VkDisplayPlaneInfo2KHR.Buffer

All Implemented Interfaces:
Addressable
Enclosing class:
VkDisplayPlaneInfo2KHR

public static final class VkDisplayPlaneInfo2KHR.Buffer extends VkDisplayPlaneInfo2KHR
  • Constructor Details

    • Buffer

      public Buffer(MemorySegment segment, long elementCount)
      Creates VkDisplayPlaneInfo2KHR.Buffer with the given segment.
      Parameters:
      segment - the memory segment
      elementCount - the element count
  • Method Details

    • estimateCount

      public long estimateCount()
      Description copied from class: GroupType
      Estimates the element count of this group type buffer.
      Overrides:
      estimateCount in class GroupType
      Returns:
      the estimated element count of the group type buffer
    • asSlice

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

      public VkDisplayPlaneInfo2KHR.Buffer asSlice(long index, long count)
      Creates a slice of VkDisplayPlaneInfo2KHR.
      Parameters:
      index - the index of the struct buffer
      count - the count
      Returns:
      the slice of VkDisplayPlaneInfo2KHR
    • 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 VkDisplayPlaneInfo2KHR.Buffer 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 VkDisplayPlaneInfo2KHR.Buffer 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
    • modeAt

      public long modeAt(long index)
      Returns mode at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      mode at the given index
    • modeAt

      public VkDisplayPlaneInfo2KHR.Buffer modeAt(long index, long value)
      Sets mode with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • planeIndexAt

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

      public VkDisplayPlaneInfo2KHR.Buffer planeIndexAt(long index, int value)
      Sets planeIndex with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this