Class ktxBasisParams.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new ktxBasisParams.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 ktxBasisParams.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.
    • uastc

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

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

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

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

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

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

      public int maxEndpoints()
      Returns:
      the value of the maxEndpoints field.
    • endpointRDOThreshold

      public float endpointRDOThreshold()
      Returns:
      the value of the endpointRDOThreshold field.
    • maxSelectors

      public int maxSelectors()
      Returns:
      the value of the maxSelectors field.
    • selectorRDOThreshold

      public float selectorRDOThreshold()
      Returns:
      the value of the selectorRDOThreshold 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.
    • normalMap

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

      public boolean separateRGToRGB_A()
      Returns:
      the value of the separateRGToRGB_A field.
    • preSwizzle

      public boolean preSwizzle()
      Returns:
      the value of the preSwizzle field.
    • noEndpointRDO

      public boolean noEndpointRDO()
      Returns:
      the value of the noEndpointRDO field.
    • noSelectorRDO

      public boolean noSelectorRDO()
      Returns:
      the value of the noSelectorRDO field.
    • uastcFlags

      public int uastcFlags()
      Returns:
      the value of the uastcFlags field.
    • uastcRDO

      public boolean uastcRDO()
      Returns:
      the value of the uastcRDO field.
    • uastcRDOQualityScalar

      public float uastcRDOQualityScalar()
      Returns:
      the value of the uastcRDOQualityScalar field.
    • uastcRDODictSize

      public int uastcRDODictSize()
      Returns:
      the value of the uastcRDODictSize field.
    • uastcRDOMaxSmoothBlockErrorScale

      public float uastcRDOMaxSmoothBlockErrorScale()
      Returns:
      the value of the uastcRDOMaxSmoothBlockErrorScale field.
    • uastcRDOMaxSmoothBlockStdDev

      public float uastcRDOMaxSmoothBlockStdDev()
      Returns:
      the value of the uastcRDOMaxSmoothBlockStdDev field.
    • uastcRDODontFavorSimplerModes

      public boolean uastcRDODontFavorSimplerModes()
      Returns:
      the value of the uastcRDODontFavorSimplerModes field.
    • uastcRDONoMultithreading

      public boolean uastcRDONoMultithreading()
      Returns:
      the value of the uastcRDONoMultithreading field.
    • structSize

      public ktxBasisParams.Buffer structSize(int value)
      Sets the specified value to the structSize field.
    • uastc

      public ktxBasisParams.Buffer uastc(boolean value)
      Sets the specified value to the uastc field.
    • verbose

      public ktxBasisParams.Buffer verbose(boolean value)
      Sets the specified value to the verbose field.
    • noSSE

      public ktxBasisParams.Buffer noSSE(boolean value)
      Sets the specified value to the noSSE field.
    • threadCount

      public ktxBasisParams.Buffer threadCount(int value)
      Sets the specified value to the threadCount field.
    • compressionLevel

      public ktxBasisParams.Buffer compressionLevel(int value)
      Sets the specified value to the compressionLevel field.
    • qualityLevel

      public ktxBasisParams.Buffer qualityLevel(int value)
      Sets the specified value to the qualityLevel field.
    • maxEndpoints

      public ktxBasisParams.Buffer maxEndpoints(int value)
      Sets the specified value to the maxEndpoints field.
    • endpointRDOThreshold

      public ktxBasisParams.Buffer endpointRDOThreshold(float value)
      Sets the specified value to the endpointRDOThreshold field.
    • maxSelectors

      public ktxBasisParams.Buffer maxSelectors(int value)
      Sets the specified value to the maxSelectors field.
    • selectorRDOThreshold

      public ktxBasisParams.Buffer selectorRDOThreshold(float value)
      Sets the specified value to the selectorRDOThreshold field.
    • inputSwizzle

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

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

      public ktxBasisParams.Buffer normalMap(boolean value)
      Sets the specified value to the normalMap field.
    • separateRGToRGB_A

      public ktxBasisParams.Buffer separateRGToRGB_A(boolean value)
      Sets the specified value to the separateRGToRGB_A field.
    • preSwizzle

      public ktxBasisParams.Buffer preSwizzle(boolean value)
      Sets the specified value to the preSwizzle field.
    • noEndpointRDO

      public ktxBasisParams.Buffer noEndpointRDO(boolean value)
      Sets the specified value to the noEndpointRDO field.
    • noSelectorRDO

      public ktxBasisParams.Buffer noSelectorRDO(boolean value)
      Sets the specified value to the noSelectorRDO field.
    • uastcFlags

      public ktxBasisParams.Buffer uastcFlags(int value)
      Sets the specified value to the uastcFlags field.
    • uastcRDO

      public ktxBasisParams.Buffer uastcRDO(boolean value)
      Sets the specified value to the uastcRDO field.
    • uastcRDOQualityScalar

      public ktxBasisParams.Buffer uastcRDOQualityScalar(float value)
      Sets the specified value to the uastcRDOQualityScalar field.
    • uastcRDODictSize

      public ktxBasisParams.Buffer uastcRDODictSize(int value)
      Sets the specified value to the uastcRDODictSize field.
    • uastcRDOMaxSmoothBlockErrorScale

      public ktxBasisParams.Buffer uastcRDOMaxSmoothBlockErrorScale(float value)
      Sets the specified value to the uastcRDOMaxSmoothBlockErrorScale field.
    • uastcRDOMaxSmoothBlockStdDev

      public ktxBasisParams.Buffer uastcRDOMaxSmoothBlockStdDev(float value)
      Sets the specified value to the uastcRDOMaxSmoothBlockStdDev field.
    • uastcRDODontFavorSimplerModes

      public ktxBasisParams.Buffer uastcRDODontFavorSimplerModes(boolean value)
      Sets the specified value to the uastcRDODontFavorSimplerModes field.
    • uastcRDONoMultithreading

      public ktxBasisParams.Buffer uastcRDONoMultithreading(boolean value)
      Sets the specified value to the uastcRDONoMultithreading field.