Class VkMicromapUsageEXT.Buffer

All Implemented Interfaces:
Addressable
Enclosing class:
VkMicromapUsageEXT

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

    • Buffer

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

      public VkMicromapUsageEXT.Buffer asSlice(long index, long count)
      Creates a slice of VkMicromapUsageEXT.
      Parameters:
      index - the index of the struct buffer
      count - the count
      Returns:
      the slice of VkMicromapUsageEXT
    • countAt

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

      public VkMicromapUsageEXT.Buffer countAt(long index, int value)
      Sets count with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • subdivisionLevelAt

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

      public VkMicromapUsageEXT.Buffer subdivisionLevelAt(long index, int value)
      Sets subdivisionLevel with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • formatAt

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

      public VkMicromapUsageEXT.Buffer formatAt(long index, int value)
      Sets format with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this