Top Description Inners Fields Constructors Methods
org.lwjgl.util.ktx

public Class ktxAstcParams

extends Struct<ktxAstcParams>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure for passing extended parameters to ktxTexture_CompressAstc.

Passing a struct initialized to 0 will use blockDimension 4x4, mode LDR and qualityLevel FASTEST. Setting qualityLevel to PACK_ASTC_QUALITY_LEVEL_MEDIUM is recommended.

Layout


struct ktxAstcParams {
    ktx_uint32_t structSize;
    ktx_bool_t verbose;
    ktx_uint32_t threadCount;
    ktx_uint32_t blockDimension;
    ktx_uint32_t mode;
    ktx_uint32_t qualityLevel;
    ktx_bool_t normalMap;
    ktx_bool_t perceptual;
    char inputSwizzle[4];
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ktxAstcParams.Buffer

An array of ktxAstcParams structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BLOCKDIMENSION

The struct member offsets.

public static final int
INPUTSWIZZLE

The struct member offsets.

public static final int
MODE

The struct member offsets.

public static final int
NORMALMAP

The struct member offsets.

public static final int
PERCEPTUAL

The struct member offsets.

public static final int
QUALITYLEVEL

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STRUCTSIZE

The struct member offsets.

public static final int
THREADCOUNT

The struct member offsets.

public static final int
VERBOSE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
ktxAstcParams(long address, ByteBuffer container)

public
ktxAstcParams(ByteBuffer container)

Creates a ktxAstcParams instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public int
blockDimension()

Combinations of block dimensions that astcenc supports

public ktxAstcParams
blockDimension(int value)

Sets the specified value to the blockDimension field.

public static ktxAstcParams
calloc()

Returns a new ktxAstcParams instance allocated with memCalloc.

public static ktxAstcParams.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new ktxAstcParams.Buffer instance allocated with memCalloc.

public static ktxAstcParams
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new ktxAstcParams instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static ktxAstcParams.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new ktxAstcParams.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected ktxAstcParams
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static ktxAstcParams
create()

Returns a new ktxAstcParams instance allocated with BufferUtils.

public static ktxAstcParams
create(long address)

Returns a new ktxAstcParams instance for the specified memory address.

public static ktxAstcParams.Buffer
create(int
the buffer capacity
capacity
)

Returns a new ktxAstcParams.Buffer instance allocated with BufferUtils.

public static ktxAstcParams.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a ktxAstcParams.Buffer instance at the specified memory.

public static ktxAstcParams
createSafe(long address)

Like create, but returns null if address is NULL.

public static ktxAstcParams.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public ByteBuffer
inputSwizzle()

A swizzle to provide as input to astcenc.

public byte
inputSwizzle(int index)

A swizzle to provide as input to astcenc.

public ktxAstcParams
inputSwizzle(ByteBuffer value)

Copies the specified ByteBuffer to the inputSwizzle field.

public ktxAstcParams
inputSwizzle(int index, byte value)

Sets the specified value at the specified index of the inputSwizzle field.

public static ktxAstcParams
malloc()

Returns a new ktxAstcParams instance allocated with memAlloc.

public static ktxAstcParams.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new ktxAstcParams.Buffer instance allocated with memAlloc.

public static ktxAstcParams
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new ktxAstcParams instance allocated on the specified MemoryStack.

public static ktxAstcParams.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new ktxAstcParams.Buffer instance allocated on the specified MemoryStack.

public int
mode()

Can be {ldr/hdr} from astcenc

public ktxAstcParams
mode(int value)

Sets the specified value to the mode field.

public static int
nblockDimension(long struct)

Unsafe version of blockDimension.

public static void
nblockDimension(long struct, int value)

Unsafe version of blockDimension.

public static ByteBuffer
ninputSwizzle(long struct)

Unsafe version of inputSwizzle.

public static byte
ninputSwizzle(long struct, int index)

Unsafe version of inputSwizzle.

public static void
ninputSwizzle(long struct, ByteBuffer value)

Unsafe version of inputSwizzle.

public static void
ninputSwizzle(long struct, int index, byte value)

Unsafe version of inputSwizzle.

public static int
nmode(long struct)

Unsafe version of mode.

public static void
nmode(long struct, int value)

Unsafe version of mode.

public static boolean
nnormalMap(long struct)

Unsafe version of normalMap.

public static void
nnormalMap(long struct, boolean value)

Unsafe version of normalMap.

public boolean
normalMap()

Tunes codec parameters for better quality on normal maps.

public ktxAstcParams
normalMap(boolean value)

Sets the specified value to the normalMap field.

public static boolean
nperceptual(long struct)

Unsafe version of perceptual.

public static void
nperceptual(long struct, boolean value)

Unsafe version of perceptual.

public static int
nqualityLevel(long struct)

Unsafe version of qualityLevel.

public static void
nqualityLevel(long struct, int value)

Unsafe version of qualityLevel.

public static int
nstructSize(long struct)

Unsafe version of structSize.

public static void
nstructSize(long struct, int value)

Unsafe version of structSize.

public static int
nthreadCount(long struct)

Unsafe version of threadCount.

public static void
nthreadCount(long struct, int value)

Unsafe version of threadCount.

public static boolean
nverbose(long struct)

Unsafe version of verbose.

public static void
nverbose(long struct, boolean value)

Unsafe version of verbose.

public boolean
perceptual()

The codec should optimize for perceptual error, instead of direct RMS error.

public ktxAstcParams
perceptual(boolean value)

Sets the specified value to the perceptual field.

public int
qualityLevel()

astcenc supports -fastest, -fast, -medium, -thorough, -exhaustive

public ktxAstcParams
qualityLevel(int value)

Sets the specified value to the qualityLevel field.

public ktxAstcParams
set(int structSize, boolean verbose, int threadCount, int blockDimension, int mode, int qualityLevel, boolean normalMap, boolean perceptual, ByteBuffer inputSwizzle)

Initializes this struct with the specified values.

public ktxAstcParams

Returns:

this struct
set
(ktxAstcParams
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
structSize()

Size of this struct.

public ktxAstcParams
structSize(int value)

Sets the specified value to the structSize field.

public int
threadCount()

Number of threads used for compression.

public ktxAstcParams
threadCount(int value)

Sets the specified value to the threadCount field.

public boolean
verbose()

If true, prints Astc encoder operation details to stdout.

public ktxAstcParams
verbose(boolean value)

Sets the specified value to the verbose field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

BLOCKDIMENSIONback to summary
public static final int BLOCKDIMENSION

The struct member offsets.

INPUTSWIZZLEback to summary
public static final int INPUTSWIZZLE

The struct member offsets.

MODEback to summary
public static final int MODE

The struct member offsets.

NORMALMAPback to summary
public static final int NORMALMAP

The struct member offsets.

PERCEPTUALback to summary
public static final int PERCEPTUAL

The struct member offsets.

QUALITYLEVELback to summary
public static final int QUALITYLEVEL

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

STRUCTSIZEback to summary
public static final int STRUCTSIZE

The struct member offsets.

THREADCOUNTback to summary
public static final int THREADCOUNT

The struct member offsets.

VERBOSEback to summary
public static final int VERBOSE

The struct member offsets.

Constructor Detail

ktxAstcParamsback to summary
protected ktxAstcParams(long address, ByteBuffer container)
ktxAstcParamsback to summary
public ktxAstcParams(ByteBuffer container)

Creates a ktxAstcParams instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

The created instance holds a strong reference to the container object.

Method Detail

blockDimensionback to summary
public int blockDimension()

Combinations of block dimensions that astcenc supports

Annotations
@NativeType:ktx_uint32_t
blockDimensionback to summary
public ktxAstcParams blockDimension(int value)

Sets the specified value to the blockDimension field.

callocback to summary
public static ktxAstcParams calloc()

Returns a new ktxAstcParams instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static ktxAstcParams.Buffer calloc(int capacity)

Returns a new ktxAstcParams.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static ktxAstcParams calloc(MemoryStack stack)

Returns a new ktxAstcParams instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static ktxAstcParams.Buffer calloc(int capacity, MemoryStack stack)

Returns a new ktxAstcParams.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

createback to summary
protected ktxAstcParams create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static ktxAstcParams create()

Returns a new ktxAstcParams instance allocated with BufferUtils.

createback to summary
public static ktxAstcParams create(long address)

Returns a new ktxAstcParams instance for the specified memory address.

createback to summary
public static ktxAstcParams.Buffer create(int capacity)

Returns a new ktxAstcParams.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static ktxAstcParams.Buffer create(long address, int capacity)

Create a ktxAstcParams.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static ktxAstcParams createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static ktxAstcParams.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
inputSwizzleback to summary
public ByteBuffer inputSwizzle()

A swizzle to provide as input to astcenc. It must match the regular expression /^[rgba01]{4}$/.

Annotations
@NativeType:char[4]
inputSwizzleback to summary
public byte inputSwizzle(int index)

A swizzle to provide as input to astcenc. It must match the regular expression /^[rgba01]{4}$/.

Annotations
@NativeType:char
inputSwizzleback to summary
public ktxAstcParams inputSwizzle(ByteBuffer value)

Copies the specified ByteBuffer to the inputSwizzle field.

inputSwizzleback to summary
public ktxAstcParams inputSwizzle(int index, byte value)

Sets the specified value at the specified index of the inputSwizzle field.

mallocback to summary
public static ktxAstcParams malloc()

Returns a new ktxAstcParams instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static ktxAstcParams.Buffer malloc(int capacity)

Returns a new ktxAstcParams.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static ktxAstcParams malloc(MemoryStack stack)

Returns a new ktxAstcParams instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static ktxAstcParams.Buffer malloc(int capacity, MemoryStack stack)

Returns a new ktxAstcParams.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

modeback to summary
public int mode()

Can be {ldr/hdr} from astcenc

Annotations
@NativeType:ktx_uint32_t
modeback to summary
public ktxAstcParams mode(int value)

Sets the specified value to the mode field.

nblockDimensionback to summary
public static int nblockDimension(long struct)

Unsafe version of blockDimension.

nblockDimensionback to summary
public static void nblockDimension(long struct, int value)

Unsafe version of blockDimension.

ninputSwizzleback to summary
public static ByteBuffer ninputSwizzle(long struct)

Unsafe version of inputSwizzle.

ninputSwizzleback to summary
public static byte ninputSwizzle(long struct, int index)

Unsafe version of inputSwizzle.

ninputSwizzleback to summary
public static void ninputSwizzle(long struct, ByteBuffer value)

Unsafe version of inputSwizzle.

ninputSwizzleback to summary
public static void ninputSwizzle(long struct, int index, byte value)

Unsafe version of inputSwizzle.

nmodeback to summary
public static int nmode(long struct)

Unsafe version of mode.

nmodeback to summary
public static void nmode(long struct, int value)

Unsafe version of mode.

nnormalMapback to summary
public static boolean nnormalMap(long struct)

Unsafe version of normalMap.

nnormalMapback to summary
public static void nnormalMap(long struct, boolean value)

Unsafe version of normalMap.

normalMapback to summary
public boolean normalMap()

Tunes codec parameters for better quality on normal maps.

In this mode normals are compressed to X,Y components, Discarding Z component, reader will need to generate Z component in shaders.

Annotations
@NativeType:ktx_bool_t
normalMapback to summary
public ktxAstcParams normalMap(boolean value)

Sets the specified value to the normalMap field.

nperceptualback to summary
public static boolean nperceptual(long struct)

Unsafe version of perceptual.

nperceptualback to summary
public static void nperceptual(long struct, boolean value)

Unsafe version of perceptual.

nqualityLevelback to summary
public static int nqualityLevel(long struct)

Unsafe version of qualityLevel.

nqualityLevelback to summary
public static void nqualityLevel(long struct, int value)

Unsafe version of qualityLevel.

nstructSizeback to summary
public static int nstructSize(long struct)

Unsafe version of structSize.

nstructSizeback to summary
public static void nstructSize(long struct, int value)

Unsafe version of structSize.

nthreadCountback to summary
public static int nthreadCount(long struct)

Unsafe version of threadCount.

nthreadCountback to summary
public static void nthreadCount(long struct, int value)

Unsafe version of threadCount.

nverboseback to summary
public static boolean nverbose(long struct)

Unsafe version of verbose.

nverboseback to summary
public static void nverbose(long struct, boolean value)

Unsafe version of verbose.

perceptualback to summary
public boolean perceptual()

The codec should optimize for perceptual error, instead of direct RMS error.

This aims to improves perceived image quality, but typically lowers the measured PSNR score. Perceptual methods are currently only available for normal maps and RGB color data.

Annotations
@NativeType:ktx_bool_t
perceptualback to summary
public ktxAstcParams perceptual(boolean value)

Sets the specified value to the perceptual field.

qualityLevelback to summary
public int qualityLevel()

astcenc supports -fastest, -fast, -medium, -thorough, -exhaustive

Annotations
@NativeType:ktx_uint32_t
qualityLevelback to summary
public ktxAstcParams qualityLevel(int value)

Sets the specified value to the qualityLevel field.

setback to summary
public ktxAstcParams set(int structSize, boolean verbose, int threadCount, int blockDimension, int mode, int qualityLevel, boolean normalMap, boolean perceptual, ByteBuffer inputSwizzle)

Initializes this struct with the specified values.

setback to summary
public ktxAstcParams set(ktxAstcParams src)

Copies the specified struct data to this struct.

Parameters
src:ktxAstcParams

the source struct

Returns:ktxAstcParams

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
structSizeback to summary
public int structSize()

Size of this struct.

Used so library can tell which version of struct is being passed.

Annotations
@NativeType:ktx_uint32_t
structSizeback to summary
public ktxAstcParams structSize(int value)

Sets the specified value to the structSize field.

threadCountback to summary
public int threadCount()

Number of threads used for compression. Default is 1.

Annotations
@NativeType:ktx_uint32_t
threadCountback to summary
public ktxAstcParams threadCount(int value)

Sets the specified value to the threadCount field.

verboseback to summary
public boolean verbose()

If true, prints Astc encoder operation details to stdout.

Not recommended for GUI apps.

Annotations
@NativeType:ktx_bool_t
verboseback to summary
public ktxAstcParams verbose(boolean value)

Sets the specified value to the verbose field.

org.lwjgl.util.ktx back to summary

public Class ktxAstcParams.Buffer

extends StructBuffer<ktxAstcParams, ktxAstcParams.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of ktxAstcParams structs.

Field Summary

Modifier and TypeField and Description
private static final ktxAstcParams

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new ktxAstcParams.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the value of the ktxAstcParams#blockDimension field.
blockDimension
()

public ktxAstcParams.Buffer
blockDimension(int value)

Sets the specified value to the ktxAstcParams#blockDimension field.

protected ktxAstcParams
public ByteBuffer

Returns:

a ByteBuffer view of the ktxAstcParams#inputSwizzle field.
inputSwizzle
()

public byte

Returns:

the value at the specified index of the ktxAstcParams#inputSwizzle field.
inputSwizzle
(int index)

public ktxAstcParams.Buffer
inputSwizzle(ByteBuffer value)

Copies the specified ByteBuffer to the ktxAstcParams#inputSwizzle field.

public ktxAstcParams.Buffer
inputSwizzle(int index, byte value)

Sets the specified value at the specified index of the ktxAstcParams#inputSwizzle field.

public int

Returns:

the value of the ktxAstcParams#mode field.
mode
()

public ktxAstcParams.Buffer
mode(int value)

Sets the specified value to the ktxAstcParams#mode field.

public boolean

Returns:

the value of the ktxAstcParams#normalMap field.
normalMap
()

public ktxAstcParams.Buffer
normalMap(boolean value)

Sets the specified value to the ktxAstcParams#normalMap field.

public boolean

Returns:

the value of the ktxAstcParams#perceptual field.
perceptual
()

public ktxAstcParams.Buffer
perceptual(boolean value)

Sets the specified value to the ktxAstcParams#perceptual field.

public int

Returns:

the value of the ktxAstcParams#qualityLevel field.
qualityLevel
()

public ktxAstcParams.Buffer
qualityLevel(int value)

Sets the specified value to the ktxAstcParams#qualityLevel field.

protected ktxAstcParams.Buffer
public int

Returns:

the value of the ktxAstcParams#structSize field.
structSize
()

public ktxAstcParams.Buffer
structSize(int value)

Sets the specified value to the ktxAstcParams#structSize field.

public int

Returns:

the value of the ktxAstcParams#threadCount field.
threadCount
()

public ktxAstcParams.Buffer
threadCount(int value)

Sets the specified value to the ktxAstcParams#threadCount field.

public boolean

Returns:

the value of the ktxAstcParams#verbose field.
verbose
()

public ktxAstcParams.Buffer
verbose(boolean value)

Sets the specified value to the ktxAstcParams#verbose field.

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final ktxAstcParams ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new ktxAstcParams.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.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

blockDimensionback to summary
public int blockDimension()
Returns:int

the value of the ktxAstcParams#blockDimension field.

Annotations
@NativeType:ktx_uint32_t
blockDimensionback to summary
public ktxAstcParams.Buffer blockDimension(int value)

Sets the specified value to the ktxAstcParams#blockDimension field.

getElementFactoryback to summary
protected ktxAstcParams getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
inputSwizzleback to summary
public ByteBuffer inputSwizzle()
Returns:ByteBuffer

a ByteBuffer view of the ktxAstcParams#inputSwizzle field.

Annotations
@NativeType:char[4]
inputSwizzleback to summary
public byte inputSwizzle(int index)
Returns:byte

the value at the specified index of the ktxAstcParams#inputSwizzle field.

Annotations
@NativeType:char
inputSwizzleback to summary
public ktxAstcParams.Buffer inputSwizzle(ByteBuffer value)

Copies the specified ByteBuffer to the ktxAstcParams#inputSwizzle field.

inputSwizzleback to summary
public ktxAstcParams.Buffer inputSwizzle(int index, byte value)

Sets the specified value at the specified index of the ktxAstcParams#inputSwizzle field.

modeback to summary
public int mode()
Returns:int

the value of the ktxAstcParams#mode field.

Annotations
@NativeType:ktx_uint32_t
modeback to summary
public ktxAstcParams.Buffer mode(int value)

Sets the specified value to the ktxAstcParams#mode field.

normalMapback to summary
public boolean normalMap()
Returns:boolean

the value of the ktxAstcParams#normalMap field.

Annotations
@NativeType:ktx_bool_t
normalMapback to summary
public ktxAstcParams.Buffer normalMap(boolean value)

Sets the specified value to the ktxAstcParams#normalMap field.

perceptualback to summary
public boolean perceptual()
Returns:boolean

the value of the ktxAstcParams#perceptual field.

Annotations
@NativeType:ktx_bool_t
perceptualback to summary
public ktxAstcParams.Buffer perceptual(boolean value)

Sets the specified value to the ktxAstcParams#perceptual field.

qualityLevelback to summary
public int qualityLevel()
Returns:int

the value of the ktxAstcParams#qualityLevel field.

Annotations
@NativeType:ktx_uint32_t
qualityLevelback to summary
public ktxAstcParams.Buffer qualityLevel(int value)

Sets the specified value to the ktxAstcParams#qualityLevel field.

selfback to summary
protected ktxAstcParams.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
structSizeback to summary
public int structSize()
Returns:int

the value of the ktxAstcParams#structSize field.

Annotations
@NativeType:ktx_uint32_t
structSizeback to summary
public ktxAstcParams.Buffer structSize(int value)

Sets the specified value to the ktxAstcParams#structSize field.

threadCountback to summary
public int threadCount()
Returns:int

the value of the ktxAstcParams#threadCount field.

Annotations
@NativeType:ktx_uint32_t
threadCountback to summary
public ktxAstcParams.Buffer threadCount(int value)

Sets the specified value to the ktxAstcParams#threadCount field.

verboseback to summary
public boolean verbose()
Returns:boolean

the value of the ktxAstcParams#verbose field.

Annotations
@NativeType:ktx_bool_t
verboseback to summary
public ktxAstcParams.Buffer verbose(boolean value)

Sets the specified value to the ktxAstcParams#verbose field.