Class VkViewportSwizzleNV.Buffer

All Implemented Interfaces:
Addressable
Enclosing class:
VkViewportSwizzleNV

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

    • Buffer

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

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

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

      public VkViewportSwizzleNV.Buffer xAt(long index, int value)
      Sets x with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • yAt

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

      public VkViewportSwizzleNV.Buffer yAt(long index, int value)
      Sets y with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • zAt

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

      public VkViewportSwizzleNV.Buffer zAt(long index, int value)
      Sets z with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • wAt

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

      public VkViewportSwizzleNV.Buffer wAt(long index, int value)
      Sets w with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this