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.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionint
compressionLevel
(int value) Sets the specified value to thecompressionLevel
field.float
endpointRDOThreshold
(float value) Sets the specified value to theendpointRDOThreshold
field.byte
inputSwizzle
(int index) inputSwizzle
(int index, byte value) Sets the specified value at the specified index of theinputSwizzle
field.inputSwizzle
(ByteBuffer value) Copies the specifiedByteBuffer
to theinputSwizzle
field.int
maxEndpoints
(int value) Sets the specified value to themaxEndpoints
field.int
maxSelectors
(int value) Sets the specified value to themaxSelectors
field.boolean
noEndpointRDO
(boolean value) Sets the specified value to thenoEndpointRDO
field.boolean
normalMap
(boolean value) Sets the specified value to thenormalMap
field.boolean
noSelectorRDO
(boolean value) Sets the specified value to thenoSelectorRDO
field.boolean
noSSE()
noSSE
(boolean value) Sets the specified value to thenoSSE
field.boolean
preSwizzle
(boolean value) Sets the specified value to thepreSwizzle
field.int
qualityLevel
(int value) Sets the specified value to thequalityLevel
field.float
selectorRDOThreshold
(float value) Sets the specified value to theselectorRDOThreshold
field.boolean
separateRGToRGB_A
(boolean value) Sets the specified value to theseparateRGToRGB_A
field.int
structSize
(int value) Sets the specified value to thestructSize
field.int
threadCount
(int value) Sets the specified value to thethreadCount
field.boolean
uastc()
uastc
(boolean value) Sets the specified value to theuastc
field.int
uastcFlags
(int value) Sets the specified value to theuastcFlags
field.boolean
uastcRDO()
uastcRDO
(boolean value) Sets the specified value to theuastcRDO
field.int
uastcRDODictSize
(int value) Sets the specified value to theuastcRDODictSize
field.boolean
uastcRDODontFavorSimplerModes
(boolean value) Sets the specified value to theuastcRDODontFavorSimplerModes
field.float
uastcRDOMaxSmoothBlockErrorScale
(float value) Sets the specified value to theuastcRDOMaxSmoothBlockErrorScale
field.float
uastcRDOMaxSmoothBlockStdDev
(float value) Sets the specified value to theuastcRDOMaxSmoothBlockStdDev
field.boolean
uastcRDONoMultithreading
(boolean value) Sets the specified value to theuastcRDONoMultithreading
field.float
uastcRDOQualityScalar
(float value) Sets the specified value to theuastcRDOQualityScalar
field.boolean
verbose()
verbose
(boolean value) Sets the specified value to theverbose
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods 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, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newktxBasisParams.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
- Returns:
- a
ByteBuffer
view of theinputSwizzle
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
Sets the specified value to thestructSize
field. -
uastc
Sets the specified value to theuastc
field. -
verbose
Sets the specified value to theverbose
field. -
noSSE
Sets the specified value to thenoSSE
field. -
threadCount
Sets the specified value to thethreadCount
field. -
compressionLevel
Sets the specified value to thecompressionLevel
field. -
qualityLevel
Sets the specified value to thequalityLevel
field. -
maxEndpoints
Sets the specified value to themaxEndpoints
field. -
endpointRDOThreshold
Sets the specified value to theendpointRDOThreshold
field. -
maxSelectors
Sets the specified value to themaxSelectors
field. -
selectorRDOThreshold
Sets the specified value to theselectorRDOThreshold
field. -
inputSwizzle
Copies the specifiedByteBuffer
to theinputSwizzle
field. -
inputSwizzle
Sets the specified value at the specified index of theinputSwizzle
field. -
normalMap
Sets the specified value to thenormalMap
field. -
separateRGToRGB_A
Sets the specified value to theseparateRGToRGB_A
field. -
preSwizzle
Sets the specified value to thepreSwizzle
field. -
noEndpointRDO
Sets the specified value to thenoEndpointRDO
field. -
noSelectorRDO
Sets the specified value to thenoSelectorRDO
field. -
uastcFlags
Sets the specified value to theuastcFlags
field. -
uastcRDO
Sets the specified value to theuastcRDO
field. -
uastcRDOQualityScalar
Sets the specified value to theuastcRDOQualityScalar
field. -
uastcRDODictSize
Sets the specified value to theuastcRDODictSize
field. -
uastcRDOMaxSmoothBlockErrorScale
Sets the specified value to theuastcRDOMaxSmoothBlockErrorScale
field. -
uastcRDOMaxSmoothBlockStdDev
Sets the specified value to theuastcRDOMaxSmoothBlockStdDev
field. -
uastcRDODontFavorSimplerModes
Sets the specified value to theuastcRDODontFavorSimplerModes
field. -
uastcRDONoMultithreading
Sets the specified value to theuastcRDONoMultithreading
field.
-