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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aktxAstcParamsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintblockDimension(int value) Sets the specified value to theblockDimensionfield.static ktxAstcParamscalloc()Returns a newktxAstcParamsinstance allocated withmemCalloc.static ktxAstcParams.Buffercalloc(int capacity) Returns a newktxAstcParams.Bufferinstance allocated withmemCalloc.static ktxAstcParams.Buffercalloc(int capacity, MemoryStack stack) Returns a newktxAstcParams.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ktxAstcParamscalloc(MemoryStack stack) Returns a newktxAstcParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ktxAstcParamscreate()Returns a newktxAstcParamsinstance allocated withBufferUtils.static ktxAstcParams.Buffercreate(int capacity) Returns a newktxAstcParams.Bufferinstance allocated withBufferUtils.static ktxAstcParamscreate(long address) Returns a newktxAstcParamsinstance for the specified memory address.static ktxAstcParams.Buffercreate(long address, int capacity) Create aktxAstcParams.Bufferinstance at the specified memory.static @Nullable ktxAstcParamscreateSafe(long address) static @Nullable ktxAstcParams.BuffercreateSafe(long address, int capacity) 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.static ktxAstcParamsmalloc()Returns a newktxAstcParamsinstance allocated withmemAlloc.static ktxAstcParams.Buffermalloc(int capacity) Returns a newktxAstcParams.Bufferinstance allocated withmemAlloc.static ktxAstcParams.Buffermalloc(int capacity, MemoryStack stack) Returns a newktxAstcParams.Bufferinstance allocated on the specifiedMemoryStack.static ktxAstcParamsmalloc(MemoryStack stack) Returns a newktxAstcParamsinstance allocated on the specifiedMemoryStack.intmode()mode(int value) Sets the specified value to themodefield.static intnblockDimension(long struct) Unsafe version ofblockDimension().static voidnblockDimension(long struct, int value) Unsafe version ofblockDimension.static ByteBufferninputSwizzle(long struct) Unsafe version ofinputSwizzle().static byteninputSwizzle(long struct, int index) Unsafe version ofinputSwizzle.static voidninputSwizzle(long struct, int index, byte value) Unsafe version ofinputSwizzle.static voidninputSwizzle(long struct, ByteBuffer value) Unsafe version ofinputSwizzle.static intnmode(long struct) Unsafe version ofmode().static voidnmode(long struct, int value) Unsafe version ofmode.static booleannnormalMap(long struct) Unsafe version ofnormalMap().static voidnnormalMap(long struct, boolean value) Unsafe version ofnormalMap.booleannormalMap(boolean value) Sets the specified value to thenormalMapfield.static booleannperceptual(long struct) Unsafe version ofperceptual().static voidnperceptual(long struct, boolean value) Unsafe version ofperceptual.static intnqualityLevel(long struct) Unsafe version ofqualityLevel().static voidnqualityLevel(long struct, int value) Unsafe version ofqualityLevel.static intnstructSize(long struct) Unsafe version ofstructSize().static voidnstructSize(long struct, int value) Unsafe version ofstructSize.static intnthreadCount(long struct) Unsafe version ofthreadCount().static voidnthreadCount(long struct, int value) Unsafe version ofthreadCount.static booleannverbose(long struct) Unsafe version ofverbose().static voidnverbose(long struct, boolean value) Unsafe version ofverbose.booleanperceptual(boolean value) Sets the specified value to theperceptualfield.intqualityLevel(int value) Sets the specified value to thequalityLevelfield.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.intsizeof()Returnssizeof(struct).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.Pointer.Default
address, equals, hashCode, toStringMethods 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 aktxAstcParamsinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<ktxAstcParams>
-
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. -
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 newktxAstcParamsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newktxAstcParamsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newktxAstcParamsinstance allocated withBufferUtils. -
create
Returns a newktxAstcParamsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newktxAstcParams.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newktxAstcParams.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newktxAstcParams.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aktxAstcParams.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newktxAstcParamsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newktxAstcParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newktxAstcParams.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newktxAstcParams.Bufferinstance allocated on the specifiedMemoryStackand 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.
-