Package org.lwjgl.util.ktx
Class ktxAstcParams.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<ktxAstcParams.Buffer>
org.lwjgl.system.StructBuffer<ktxAstcParams,ktxAstcParams.Buffer>
org.lwjgl.util.ktx.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.-
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 newktxAstcParams.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionintblockDimension(int value) Sets the specified value to theblockDimensionfield.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.intmode()mode(int value) Sets the specified value to themodefield.booleannormalMap(boolean value) Sets the specified value to thenormalMapfield.booleanperceptual(boolean value) Sets the specified value to theperceptualfield.intqualityLevel(int value) Sets the specified value to thequalityLevelfield.intstructSize(int value) Sets the specified value to thestructSizefield.intthreadCount(int value) Sets the specified value to thethreadCountfield.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 newktxAstcParams.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
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
structSizefield.
-
verbose
public boolean verbose()- Returns:
- the value of the
verbosefield.
-
threadCount
public int threadCount()- Returns:
- the value of the
threadCountfield.
-
blockDimension
public int blockDimension()- Returns:
- the value of the
blockDimensionfield.
-
mode
public int mode()- Returns:
- the value of the
modefield.
-
qualityLevel
public int qualityLevel()- Returns:
- the value of the
qualityLevelfield.
-
normalMap
public boolean normalMap()- Returns:
- the value of the
normalMapfield.
-
perceptual
public boolean perceptual()- Returns:
- the value of the
perceptualfield.
-
inputSwizzle
- Returns:
- a
ByteBufferview of theinputSwizzlefield.
-
inputSwizzle
public byte inputSwizzle(int index) - Returns:
- the value at the specified index of the
inputSwizzlefield.
-
structSize
Sets the specified value to thestructSizefield. -
verbose
Sets the specified value to theverbosefield. -
threadCount
Sets the specified value to thethreadCountfield. -
blockDimension
Sets the specified value to theblockDimensionfield. -
mode
Sets the specified value to themodefield. -
qualityLevel
Sets the specified value to thequalityLevelfield. -
normalMap
Sets the specified value to thenormalMapfield. -
perceptual
Sets the specified value to theperceptualfield. -
inputSwizzle
Copies the specifiedByteBufferto theinputSwizzlefield. -
inputSwizzle
Sets the specified value at the specified index of theinputSwizzlefield.
-