Class ktxAstcParams.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<ktxAstcParams>, NativeResource, Pointer
Enclosing class:
ktxAstcParams

public static class ktxAstcParams.Buffer extends StructBuffer<ktxAstcParams,ktxAstcParams.Buffer> implements NativeResource
An array of ktxAstcParams structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new ktxAstcParams.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by ktxAstcParams.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • structSize

      public int structSize()
      Returns:
      the value of the structSize field.
    • verbose

      public boolean verbose()
      Returns:
      the value of the verbose field.
    • threadCount

      public int threadCount()
      Returns:
      the value of the threadCount field.
    • blockDimension

      public int blockDimension()
      Returns:
      the value of the blockDimension field.
    • mode

      public int mode()
      Returns:
      the value of the mode field.
    • qualityLevel

      public int qualityLevel()
      Returns:
      the value of the qualityLevel field.
    • normalMap

      public boolean normalMap()
      Returns:
      the value of the normalMap field.
    • perceptual

      public boolean perceptual()
      Returns:
      the value of the perceptual field.
    • inputSwizzle

      public ByteBuffer inputSwizzle()
      Returns:
      a ByteBuffer view of the inputSwizzle field.
    • inputSwizzle

      public byte inputSwizzle(int index)
      Returns:
      the value at the specified index of the inputSwizzle field.
    • structSize

      public ktxAstcParams.Buffer structSize(int value)
      Sets the specified value to the structSize field.
    • verbose

      public ktxAstcParams.Buffer verbose(boolean value)
      Sets the specified value to the verbose field.
    • threadCount

      public ktxAstcParams.Buffer threadCount(int value)
      Sets the specified value to the threadCount field.
    • blockDimension

      public ktxAstcParams.Buffer blockDimension(int value)
      Sets the specified value to the blockDimension field.
    • mode

      public ktxAstcParams.Buffer mode(int value)
      Sets the specified value to the mode field.
    • qualityLevel

      public ktxAstcParams.Buffer qualityLevel(int value)
      Sets the specified value to the qualityLevel field.
    • normalMap

      public ktxAstcParams.Buffer normalMap(boolean value)
      Sets the specified value to the normalMap field.
    • perceptual

      public ktxAstcParams.Buffer perceptual(boolean value)
      Sets the specified value to the perceptual field.
    • inputSwizzle

      public ktxAstcParams.Buffer inputSwizzle(ByteBuffer value)
      Copies the specified ByteBuffer to the inputSwizzle field.
    • inputSwizzle

      public ktxAstcParams.Buffer inputSwizzle(int index, byte value)
      Sets the specified value at the specified index of the inputSwizzle field.