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.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionint
blockDimension
(int value) Sets the specified value to theblockDimension
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
mode()
mode
(int value) Sets the specified value to themode
field.boolean
normalMap
(boolean value) Sets the specified value to thenormalMap
field.boolean
perceptual
(boolean value) Sets the specified value to theperceptual
field.int
qualityLevel
(int value) Sets the specified value to thequalityLevel
field.int
structSize
(int value) Sets the specified value to thestructSize
field.int
threadCount
(int value) Sets the specified value to thethreadCount
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 newktxAstcParams.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
- Returns:
- a
ByteBuffer
view of theinputSwizzle
field.
-
inputSwizzle
public byte inputSwizzle(int index) - Returns:
- the value at the specified index of the
inputSwizzle
field.
-
structSize
Sets the specified value to thestructSize
field. -
verbose
Sets the specified value to theverbose
field. -
threadCount
Sets the specified value to thethreadCount
field. -
blockDimension
Sets the specified value to theblockDimension
field. -
mode
Sets the specified value to themode
field. -
qualityLevel
Sets the specified value to thequalityLevel
field. -
normalMap
Sets the specified value to thenormalMap
field. -
perceptual
Sets the specified value to theperceptual
field. -
inputSwizzle
Copies the specifiedByteBuffer
to theinputSwizzle
field. -
inputSwizzle
Sets the specified value at the specified index of theinputSwizzle
field.
-