Class VkAndroidHardwareBufferFormatPropertiesANDROID.Buffer

java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.android.struct.VkAndroidHardwareBufferFormatPropertiesANDROID
overrungl.vulkan.android.struct.VkAndroidHardwareBufferFormatPropertiesANDROID.Buffer
All Implemented Interfaces:
Addressable
Enclosing class:
VkAndroidHardwareBufferFormatPropertiesANDROID

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

    • Buffer

      public Buffer(MemorySegment segment, long elementCount)
      Creates VkAndroidHardwareBufferFormatPropertiesANDROID.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

      Creates a slice of VkAndroidHardwareBufferFormatPropertiesANDROID.
      Parameters:
      index - the index of the struct buffer
      Returns:
      the slice of VkAndroidHardwareBufferFormatPropertiesANDROID
    • asSlice

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

      Sets pNext 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 VkAndroidHardwareBufferFormatPropertiesANDROID.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
    • externalFormatAt

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

      public VkAndroidHardwareBufferFormatPropertiesANDROID.Buffer externalFormatAt(long index, long value)
      Sets externalFormat with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • formatFeaturesAt

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

      public VkAndroidHardwareBufferFormatPropertiesANDROID.Buffer formatFeaturesAt(long index, int value)
      Sets formatFeatures with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • samplerYcbcrConversionComponentsAt

      public MemorySegment samplerYcbcrConversionComponentsAt(long index)
      Returns samplerYcbcrConversionComponents at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      samplerYcbcrConversionComponents at the given index
    • samplerYcbcrConversionComponentsAt

      public VkAndroidHardwareBufferFormatPropertiesANDROID.Buffer samplerYcbcrConversionComponentsAt(long index, MemorySegment value)
      Sets samplerYcbcrConversionComponents with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • suggestedYcbcrModelAt

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

      public VkAndroidHardwareBufferFormatPropertiesANDROID.Buffer suggestedYcbcrModelAt(long index, int value)
      Sets suggestedYcbcrModel with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • suggestedYcbcrRangeAt

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

      public VkAndroidHardwareBufferFormatPropertiesANDROID.Buffer suggestedYcbcrRangeAt(long index, int value)
      Sets suggestedYcbcrRange with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • suggestedXChromaOffsetAt

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

      public VkAndroidHardwareBufferFormatPropertiesANDROID.Buffer suggestedXChromaOffsetAt(long index, int value)
      Sets suggestedXChromaOffset with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • suggestedYChromaOffsetAt

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

      public VkAndroidHardwareBufferFormatPropertiesANDROID.Buffer suggestedYChromaOffsetAt(long index, int value)
      Sets suggestedYChromaOffset with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this