Package org.lwjgl.util.ktx
Class ktxBasisParams.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<ktxBasisParams.Buffer>
org.lwjgl.system.StructBuffer<ktxBasisParams,ktxBasisParams.Buffer>
org.lwjgl.util.ktx.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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newktxBasisParams.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionintcompressionLevel(int value) Sets the specified value to thecompressionLevelfield.floatendpointRDOThreshold(float value) Sets the specified value to theendpointRDOThresholdfield.byteinputSwizzle(int index) inputSwizzle(int index, byte value) Sets the specified value at the specified index of theinputSwizzlefield.inputSwizzle(ByteBuffer value) Copies the specifiedByteBufferto theinputSwizzlefield.intmaxEndpoints(int value) Sets the specified value to themaxEndpointsfield.intmaxSelectors(int value) Sets the specified value to themaxSelectorsfield.booleannoEndpointRDO(boolean value) Sets the specified value to thenoEndpointRDOfield.booleannormalMap(boolean value) Sets the specified value to thenormalMapfield.booleannoSelectorRDO(boolean value) Sets the specified value to thenoSelectorRDOfield.booleannoSSE()noSSE(boolean value) Sets the specified value to thenoSSEfield.booleanpreSwizzle(boolean value) Sets the specified value to thepreSwizzlefield.intqualityLevel(int value) Sets the specified value to thequalityLevelfield.floatselectorRDOThreshold(float value) Sets the specified value to theselectorRDOThresholdfield.booleanseparateRGToRGB_A(boolean value) Sets the specified value to theseparateRGToRGB_Afield.intstructSize(int value) Sets the specified value to thestructSizefield.intthreadCount(int value) Sets the specified value to thethreadCountfield.booleanuastc()uastc(boolean value) Sets the specified value to theuastcfield.intuastcFlags(int value) Sets the specified value to theuastcFlagsfield.booleanuastcRDO()uastcRDO(boolean value) Sets the specified value to theuastcRDOfield.intuastcRDODictSize(int value) Sets the specified value to theuastcRDODictSizefield.booleanuastcRDODontFavorSimplerModes(boolean value) Sets the specified value to theuastcRDODontFavorSimplerModesfield.floatuastcRDOMaxSmoothBlockErrorScale(float value) Sets the specified value to theuastcRDOMaxSmoothBlockErrorScalefield.floatuastcRDOMaxSmoothBlockStdDev(float value) Sets the specified value to theuastcRDOMaxSmoothBlockStdDevfield.booleanuastcRDONoMultithreading(boolean value) Sets the specified value to theuastcRDONoMultithreadingfield.floatuastcRDOQualityScalar(float value) Sets the specified value to theuastcRDOQualityScalarfield.booleanverbose()verbose(boolean value) Sets the specified value to theverbosefield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newktxBasisParams.Bufferinstance 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
structSizefield.
-
uastc
public boolean uastc()- Returns:
- the value of the
uastcfield.
-
verbose
public boolean verbose()- Returns:
- the value of the
verbosefield.
-
noSSE
public boolean noSSE()- Returns:
- the value of the
noSSEfield.
-
threadCount
public int threadCount()- Returns:
- the value of the
threadCountfield.
-
compressionLevel
public int compressionLevel()- Returns:
- the value of the
compressionLevelfield.
-
qualityLevel
public int qualityLevel()- Returns:
- the value of the
qualityLevelfield.
-
maxEndpoints
public int maxEndpoints()- Returns:
- the value of the
maxEndpointsfield.
-
endpointRDOThreshold
public float endpointRDOThreshold()- Returns:
- the value of the
endpointRDOThresholdfield.
-
maxSelectors
public int maxSelectors()- Returns:
- the value of the
maxSelectorsfield.
-
selectorRDOThreshold
public float selectorRDOThreshold()- Returns:
- the value of the
selectorRDOThresholdfield.
-
inputSwizzle
- Returns:
- a
ByteBufferview of theinputSwizzlefield.
-
inputSwizzle
public byte inputSwizzle(int index) - Returns:
- the value at the specified index of the
inputSwizzlefield.
-
normalMap
public boolean normalMap()- Returns:
- the value of the
normalMapfield.
-
separateRGToRGB_A
public boolean separateRGToRGB_A()- Returns:
- the value of the
separateRGToRGB_Afield.
-
preSwizzle
public boolean preSwizzle()- Returns:
- the value of the
preSwizzlefield.
-
noEndpointRDO
public boolean noEndpointRDO()- Returns:
- the value of the
noEndpointRDOfield.
-
noSelectorRDO
public boolean noSelectorRDO()- Returns:
- the value of the
noSelectorRDOfield.
-
uastcFlags
public int uastcFlags()- Returns:
- the value of the
uastcFlagsfield.
-
uastcRDO
public boolean uastcRDO()- Returns:
- the value of the
uastcRDOfield.
-
uastcRDOQualityScalar
public float uastcRDOQualityScalar()- Returns:
- the value of the
uastcRDOQualityScalarfield.
-
uastcRDODictSize
public int uastcRDODictSize()- Returns:
- the value of the
uastcRDODictSizefield.
-
uastcRDOMaxSmoothBlockErrorScale
public float uastcRDOMaxSmoothBlockErrorScale()- Returns:
- the value of the
uastcRDOMaxSmoothBlockErrorScalefield.
-
uastcRDOMaxSmoothBlockStdDev
public float uastcRDOMaxSmoothBlockStdDev()- Returns:
- the value of the
uastcRDOMaxSmoothBlockStdDevfield.
-
uastcRDODontFavorSimplerModes
public boolean uastcRDODontFavorSimplerModes()- Returns:
- the value of the
uastcRDODontFavorSimplerModesfield.
-
uastcRDONoMultithreading
public boolean uastcRDONoMultithreading()- Returns:
- the value of the
uastcRDONoMultithreadingfield.
-
structSize
Sets the specified value to thestructSizefield. -
uastc
Sets the specified value to theuastcfield. -
verbose
Sets the specified value to theverbosefield. -
noSSE
Sets the specified value to thenoSSEfield. -
threadCount
Sets the specified value to thethreadCountfield. -
compressionLevel
Sets the specified value to thecompressionLevelfield. -
qualityLevel
Sets the specified value to thequalityLevelfield. -
maxEndpoints
Sets the specified value to themaxEndpointsfield. -
endpointRDOThreshold
Sets the specified value to theendpointRDOThresholdfield. -
maxSelectors
Sets the specified value to themaxSelectorsfield. -
selectorRDOThreshold
Sets the specified value to theselectorRDOThresholdfield. -
inputSwizzle
Copies the specifiedByteBufferto theinputSwizzlefield. -
inputSwizzle
Sets the specified value at the specified index of theinputSwizzlefield. -
normalMap
Sets the specified value to thenormalMapfield. -
separateRGToRGB_A
Sets the specified value to theseparateRGToRGB_Afield. -
preSwizzle
Sets the specified value to thepreSwizzlefield. -
noEndpointRDO
Sets the specified value to thenoEndpointRDOfield. -
noSelectorRDO
Sets the specified value to thenoSelectorRDOfield. -
uastcFlags
Sets the specified value to theuastcFlagsfield. -
uastcRDO
Sets the specified value to theuastcRDOfield. -
uastcRDOQualityScalar
Sets the specified value to theuastcRDOQualityScalarfield. -
uastcRDODictSize
Sets the specified value to theuastcRDODictSizefield. -
uastcRDOMaxSmoothBlockErrorScale
Sets the specified value to theuastcRDOMaxSmoothBlockErrorScalefield. -
uastcRDOMaxSmoothBlockStdDev
Sets the specified value to theuastcRDOMaxSmoothBlockStdDevfield. -
uastcRDODontFavorSimplerModes
Sets the specified value to theuastcRDODontFavorSimplerModesfield. -
uastcRDONoMultithreading
Sets the specified value to theuastcRDONoMultithreadingfield.
-