Class VkFaultData.Buffer

All Implemented Interfaces:
Addressable
Enclosing class:
VkFaultData

public static final class VkFaultData.Buffer extends VkFaultData
A buffer of VkFaultData.
  • Constructor Details

    • Buffer

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

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

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

      public VkFaultData.Buffer faultLevelAt(long index, int value)
      Sets faultLevel with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • faultTypeAt

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

      public VkFaultData.Buffer faultTypeAt(long index, int value)
      Sets faultType with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this