Class VkSubresourceLayout.Buffer

All Implemented Interfaces:
Addressable
Enclosing class:
VkSubresourceLayout

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

    • Buffer

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

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

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

      public VkSubresourceLayout.Buffer offsetAt(long index, long value)
      Sets offset with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • sizeAt

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

      public VkSubresourceLayout.Buffer sizeAt(long index, long value)
      Sets size with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • rowPitchAt

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

      public VkSubresourceLayout.Buffer rowPitchAt(long index, long value)
      Sets rowPitch with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • arrayPitchAt

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

      public VkSubresourceLayout.Buffer arrayPitchAt(long index, long value)
      Sets arrayPitch with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • depthPitchAt

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

      public VkSubresourceLayout.Buffer depthPitchAt(long index, long value)
      Sets depthPitch with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this