Package org.lwjgl.util.ktx
Class ktxAstcParams
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
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 Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionktxAstcParams
(ByteBuffer container) Creates aktxAstcParams
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
blockDimension
(int value) Sets the specified value to theblockDimension
field.static ktxAstcParams
calloc()
Returns a newktxAstcParams
instance allocated withmemCalloc
.static ktxAstcParams.Buffer
calloc
(int capacity) Returns a newktxAstcParams.Buffer
instance allocated withmemCalloc
.static ktxAstcParams.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newktxAstcParams.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ktxAstcParams
calloc
(MemoryStack stack) Returns a newktxAstcParams
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static ktxAstcParams
create()
Returns a newktxAstcParams
instance allocated withBufferUtils
.static ktxAstcParams.Buffer
create
(int capacity) Returns a newktxAstcParams.Buffer
instance allocated withBufferUtils
.static ktxAstcParams
create
(long address) Returns a newktxAstcParams
instance for the specified memory address.static ktxAstcParams.Buffer
create
(long address, int capacity) Create aktxAstcParams.Buffer
instance at the specified memory.static @Nullable ktxAstcParams
createSafe
(long address) static @Nullable ktxAstcParams.Buffer
createSafe
(long address, int capacity) 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.static ktxAstcParams
malloc()
Returns a newktxAstcParams
instance allocated withmemAlloc
.static ktxAstcParams.Buffer
malloc
(int capacity) Returns a newktxAstcParams.Buffer
instance allocated withmemAlloc
.static ktxAstcParams.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newktxAstcParams.Buffer
instance allocated on the specifiedMemoryStack
.static ktxAstcParams
malloc
(MemoryStack stack) Returns a newktxAstcParams
instance allocated on the specifiedMemoryStack
.int
mode()
mode
(int value) Sets the specified value to themode
field.static int
nblockDimension
(long struct) Unsafe version ofblockDimension()
.static void
nblockDimension
(long struct, int value) Unsafe version ofblockDimension
.static ByteBuffer
ninputSwizzle
(long struct) Unsafe version ofinputSwizzle()
.static byte
ninputSwizzle
(long struct, int index) Unsafe version ofinputSwizzle
.static void
ninputSwizzle
(long struct, int index, byte value) Unsafe version ofinputSwizzle
.static void
ninputSwizzle
(long struct, ByteBuffer value) Unsafe version ofinputSwizzle
.static int
nmode
(long struct) Unsafe version ofmode()
.static void
nmode
(long struct, int value) Unsafe version ofmode
.static boolean
nnormalMap
(long struct) Unsafe version ofnormalMap()
.static void
nnormalMap
(long struct, boolean value) Unsafe version ofnormalMap
.boolean
normalMap
(boolean value) Sets the specified value to thenormalMap
field.static boolean
nperceptual
(long struct) Unsafe version ofperceptual()
.static void
nperceptual
(long struct, boolean value) Unsafe version ofperceptual
.static int
nqualityLevel
(long struct) Unsafe version ofqualityLevel()
.static void
nqualityLevel
(long struct, int value) Unsafe version ofqualityLevel
.static int
nstructSize
(long struct) Unsafe version ofstructSize()
.static void
nstructSize
(long struct, int value) Unsafe version ofstructSize
.static int
nthreadCount
(long struct) Unsafe version ofthreadCount()
.static void
nthreadCount
(long struct, int value) Unsafe version ofthreadCount
.static boolean
nverbose
(long struct) Unsafe version ofverbose()
.static void
nverbose
(long struct, boolean value) Unsafe version ofverbose
.boolean
perceptual
(boolean value) Sets the specified value to theperceptual
field.int
qualityLevel
(int value) Sets the specified value to thequalityLevel
field.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.set
(ktxAstcParams src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.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.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STRUCTSIZE
public static final int STRUCTSIZEThe struct member offsets. -
VERBOSE
public static final int VERBOSEThe struct member offsets. -
THREADCOUNT
public static final int THREADCOUNTThe struct member offsets. -
BLOCKDIMENSION
public static final int BLOCKDIMENSIONThe struct member offsets. -
MODE
public static final int MODEThe struct member offsets. -
QUALITYLEVEL
public static final int QUALITYLEVELThe struct member offsets. -
NORMALMAP
public static final int NORMALMAPThe struct member offsets. -
PERCEPTUAL
public static final int PERCEPTUALThe struct member offsets. -
INPUTSWIZZLE
public static final int INPUTSWIZZLEThe struct member offsets.
-
-
Constructor Details
-
ktxAstcParams
Creates aktxAstcParams
instance at the current position of the specifiedByteBuffer
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<ktxAstcParams>
-
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. -
set
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. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newktxAstcParams
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newktxAstcParams
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newktxAstcParams
instance allocated withBufferUtils
. -
create
Returns a newktxAstcParams
instance for the specified memory address. -
createSafe
-
malloc
Returns a newktxAstcParams.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newktxAstcParams.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newktxAstcParams.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aktxAstcParams.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newktxAstcParams
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newktxAstcParams
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newktxAstcParams.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newktxAstcParams.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nstructSize
public static int nstructSize(long struct) Unsafe version ofstructSize()
. -
nverbose
public static boolean nverbose(long struct) Unsafe version ofverbose()
. -
nthreadCount
public static int nthreadCount(long struct) Unsafe version ofthreadCount()
. -
nblockDimension
public static int nblockDimension(long struct) Unsafe version ofblockDimension()
. -
nmode
public static int nmode(long struct) Unsafe version ofmode()
. -
nqualityLevel
public static int nqualityLevel(long struct) Unsafe version ofqualityLevel()
. -
nnormalMap
public static boolean nnormalMap(long struct) Unsafe version ofnormalMap()
. -
nperceptual
public static boolean nperceptual(long struct) Unsafe version ofperceptual()
. -
ninputSwizzle
Unsafe version ofinputSwizzle()
. -
ninputSwizzle
public static byte ninputSwizzle(long struct, int index) Unsafe version ofinputSwizzle
. -
nstructSize
public static void nstructSize(long struct, int value) Unsafe version ofstructSize
. -
nverbose
public static void nverbose(long struct, boolean value) Unsafe version ofverbose
. -
nthreadCount
public static void nthreadCount(long struct, int value) Unsafe version ofthreadCount
. -
nblockDimension
public static void nblockDimension(long struct, int value) Unsafe version ofblockDimension
. -
nmode
public static void nmode(long struct, int value) Unsafe version ofmode
. -
nqualityLevel
public static void nqualityLevel(long struct, int value) Unsafe version ofqualityLevel
. -
nnormalMap
public static void nnormalMap(long struct, boolean value) Unsafe version ofnormalMap
. -
nperceptual
public static void nperceptual(long struct, boolean value) Unsafe version ofperceptual
. -
ninputSwizzle
Unsafe version ofinputSwizzle
. -
ninputSwizzle
public static void ninputSwizzle(long struct, int index, byte value) Unsafe version ofinputSwizzle
.
-