Class ktxBasisParams
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
Texture2_CompressBasisEx.
If you only want default values, use Texture2_CompressBasis. Here, at a minimum you must initialize the structure as follows:
ktxBasisParams params = {0};
params.structSize = sizeof(params);
params.compressionLevel = KTX_ETC1S_DEFAULT_COMPRESSION_LEVEL;
compressionLevel has to be explicitly set because 0 is a valid compressionLevel but is not the default used by the BasisU encoder
when no value is set. Only the other settings that are to be non-default must be non-zero.
Layout
struct ktxBasisParams {
ktx_uint32_t structSize();
ktx_bool_t uastc();
ktx_bool_t verbose();
ktx_bool_t noSSE();
ktx_uint32_t threadCount();
ktx_uint32_t compressionLevel();
ktx_uint32_t qualityLevel();
ktx_uint32_t maxEndpoints();
float endpointRDOThreshold();
ktx_uint32_t maxSelectors();
float selectorRDOThreshold();
char inputSwizzle()[4];
ktx_bool_t normalMap();
ktx_bool_t separateRGToRGB_A();
ktx_bool_t preSwizzle();
ktx_bool_t noEndpointRDO();
ktx_bool_t noSelectorRDO();
ktx_pack_uastc_flags uastcFlags();
ktx_bool_t uastcRDO();
float uastcRDOQualityScalar();
ktx_uint32_t uastcRDODictSize();
float uastcRDOMaxSmoothBlockErrorScale();
float uastcRDOMaxSmoothBlockStdDev();
ktx_bool_t uastcRDODontFavorSimplerModes();
ktx_bool_t uastcRDONoMultithreading();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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 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 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.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 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
ConstructorsConstructorDescriptionktxBasisParams(ByteBuffer container) Creates aktxBasisParamsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic ktxBasisParamscalloc()Returns a newktxBasisParamsinstance allocated withmemCalloc.static ktxBasisParams.Buffercalloc(int capacity) Returns a newktxBasisParams.Bufferinstance allocated withmemCalloc.static ktxBasisParams.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newktxBasisParams.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static ktxBasisParamscalloc(org.lwjgl.system.MemoryStack stack) Returns a newktxBasisParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intEncoding speed vs.compressionLevel(int value) Sets the specified value to thecompressionLevel()field.static ktxBasisParamscreate()Returns a newktxBasisParamsinstance allocated withBufferUtils.static ktxBasisParams.Buffercreate(int capacity) Returns a newktxBasisParams.Bufferinstance allocated withBufferUtils.static ktxBasisParamscreate(long address) Returns a newktxBasisParamsinstance for the specified memory address.static ktxBasisParams.Buffercreate(long address, int capacity) Create aktxBasisParams.Bufferinstance at the specified memory.static @Nullable ktxBasisParamscreateSafe(long address) static @Nullable ktxBasisParams.BuffercreateSafe(long address, int capacity) floatSet endpoint RDO quality threshold.endpointRDOThreshold(float value) Sets the specified value to theendpointRDOThreshold()field.A swizzle to apply before encoding.byteinputSwizzle(int index) A swizzle to apply before encoding.inputSwizzle(int index, byte value) Sets the specified value at the specified index of theinputSwizzle()field.inputSwizzle(ByteBuffer value) Copies the specifiedByteBufferto theinputSwizzle()field.static ktxBasisParamsmalloc()Returns a newktxBasisParamsinstance allocated withmemAlloc.static ktxBasisParams.Buffermalloc(int capacity) Returns a newktxBasisParams.Bufferinstance allocated withmemAlloc.static ktxBasisParams.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newktxBasisParams.Bufferinstance allocated on the specifiedMemoryStack.static ktxBasisParamsmalloc(org.lwjgl.system.MemoryStack stack) Returns a newktxBasisParamsinstance allocated on the specifiedMemoryStack.intManually set the max number of color endpoint clusters.maxEndpoints(int value) Sets the specified value to themaxEndpoints()field.intManually set the max number of color selector clusters.maxSelectors(int value) Sets the specified value to themaxSelectors()field.static intncompressionLevel(long struct) Unsafe version ofcompressionLevel().static voidncompressionLevel(long struct, int value) Unsafe version ofcompressionLevel.static floatnendpointRDOThreshold(long struct) Unsafe version ofendpointRDOThreshold().static voidnendpointRDOThreshold(long struct, float value) Unsafe version ofendpointRDOThreshold.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 intnmaxEndpoints(long struct) Unsafe version ofmaxEndpoints().static voidnmaxEndpoints(long struct, int value) Unsafe version ofmaxEndpoints.static intnmaxSelectors(long struct) Unsafe version ofmaxSelectors().static voidnmaxSelectors(long struct, int value) Unsafe version ofmaxSelectors.static booleannnoEndpointRDO(long struct) Unsafe version ofnoEndpointRDO().static voidnnoEndpointRDO(long struct, boolean value) Unsafe version ofnoEndpointRDO.static booleannnormalMap(long struct) Unsafe version ofnormalMap().static voidnnormalMap(long struct, boolean value) Unsafe version ofnormalMap.static booleannnoSelectorRDO(long struct) Unsafe version ofnoSelectorRDO().static voidnnoSelectorRDO(long struct, boolean value) Unsafe version ofnoSelectorRDO.static booleannnoSSE(long struct) Unsafe version ofnoSSE().static voidnnoSSE(long struct, boolean value) Unsafe version ofnoSSE.booleanDisable endpoint rate distortion optimizations.noEndpointRDO(boolean value) Sets the specified value to thenoEndpointRDO()field.booleanTunes codec parameters for better quality on normal maps (no selector RDO, no endpoint RDO) and sets the texture's DFD appropriately.normalMap(boolean value) Sets the specified value to thenormalMap()field.booleanDisable selector rate distortion optimizations.noSelectorRDO(boolean value) Sets the specified value to thenoSelectorRDO()field.booleannoSSE()True to forbid use of the SSE instruction set.noSSE(boolean value) Sets the specified value to thenoSSE()field.static booleannpreSwizzle(long struct) Unsafe version ofpreSwizzle().static voidnpreSwizzle(long struct, boolean value) Unsafe version ofpreSwizzle.static intnqualityLevel(long struct) Unsafe version ofqualityLevel().static voidnqualityLevel(long struct, int value) Unsafe version ofqualityLevel.static floatnselectorRDOThreshold(long struct) Unsafe version ofselectorRDOThreshold().static voidnselectorRDOThreshold(long struct, float value) Unsafe version ofselectorRDOThreshold.static booleannseparateRGToRGB_A(long struct) Unsafe version ofseparateRGToRGB_A().static voidnseparateRGToRGB_A(long struct, boolean value) Unsafe version ofseparateRGToRGB_A.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 booleannuastc(long struct) Unsafe version ofuastc().static voidnuastc(long struct, boolean value) Unsafe version ofuastc.static intnuastcFlags(long struct) Unsafe version ofuastcFlags().static voidnuastcFlags(long struct, int value) Unsafe version ofuastcFlags.static booleannuastcRDO(long struct) Unsafe version ofuastcRDO().static voidnuastcRDO(long struct, boolean value) Unsafe version ofuastcRDO.static intnuastcRDODictSize(long struct) Unsafe version ofuastcRDODictSize().static voidnuastcRDODictSize(long struct, int value) Unsafe version ofuastcRDODictSize.static booleannuastcRDODontFavorSimplerModes(long struct) Unsafe version ofuastcRDODontFavorSimplerModes().static voidnuastcRDODontFavorSimplerModes(long struct, boolean value) Unsafe version ofuastcRDODontFavorSimplerModes.static floatnuastcRDOMaxSmoothBlockErrorScale(long struct) Unsafe version ofuastcRDOMaxSmoothBlockErrorScale().static voidnuastcRDOMaxSmoothBlockErrorScale(long struct, float value) Unsafe version ofuastcRDOMaxSmoothBlockErrorScale.static floatnuastcRDOMaxSmoothBlockStdDev(long struct) Unsafe version ofuastcRDOMaxSmoothBlockStdDev().static voidnuastcRDOMaxSmoothBlockStdDev(long struct, float value) Unsafe version ofuastcRDOMaxSmoothBlockStdDev.static booleannuastcRDONoMultithreading(long struct) Unsafe version ofuastcRDONoMultithreading().static voidnuastcRDONoMultithreading(long struct, boolean value) Unsafe version ofuastcRDONoMultithreading.static floatnuastcRDOQualityScalar(long struct) Unsafe version ofuastcRDOQualityScalar().static voidnuastcRDOQualityScalar(long struct, float value) Unsafe version ofuastcRDOQualityScalar.static booleannverbose(long struct) Unsafe version ofverbose().static voidnverbose(long struct, boolean value) Unsafe version ofverbose.booleanIf the texture hasKTXswizzlemetadata, apply it before compressing.preSwizzle(boolean value) Sets the specified value to thepreSwizzle()field.intCompression quality.qualityLevel(int value) Sets the specified value to thequalityLevel()field.floatSet selector RDO quality threshold.selectorRDOThreshold(float value) Sets the specified value to theselectorRDOThreshold()field.booleandeprecatedseparateRGToRGB_A(boolean value) Sets the specified value to theseparateRGToRGB_A()field.set(int structSize, boolean uastc, boolean verbose, boolean noSSE, int threadCount, int compressionLevel, int qualityLevel, int maxEndpoints, float endpointRDOThreshold, int maxSelectors, float selectorRDOThreshold, ByteBuffer inputSwizzle, boolean normalMap, boolean separateRGToRGB_A, boolean preSwizzle, boolean noEndpointRDO, boolean noSelectorRDO, int uastcFlags, boolean uastcRDO, float uastcRDOQualityScalar, int uastcRDODictSize, float uastcRDOMaxSmoothBlockErrorScale, float uastcRDOMaxSmoothBlockStdDev, boolean uastcRDODontFavorSimplerModes, boolean uastcRDONoMultithreading) Initializes this struct with the specified values.set(ktxBasisParams src) Copies the specified struct data to this struct.intsizeof()intSize of this struct.structSize(int value) Sets the specified value to thestructSize()field.intNumber of threads used for compression.threadCount(int value) Sets the specified value to thethreadCount()field.booleanuastc()True to use UASTC base, false to use ETC1S base.uastc(boolean value) Sets the specified value to theuastc()field.intA set ofktx_pack_uastc_flag_bits_econtrolling UASTC encoding.uastcFlags(int value) Sets the specified value to theuastcFlags()field.booleanuastcRDO()Enable Rate Distortion Optimization (RDO) post-processing.uastcRDO(boolean value) Sets the specified value to theuastcRDO()field.intUASTC RDO dictionary size in bytes.uastcRDODictSize(int value) Sets the specified value to theuastcRDODictSize()field.booleanDo not favor simpler UASTC modes in RDO mode.uastcRDODontFavorSimplerModes(boolean value) Sets the specified value to theuastcRDODontFavorSimplerModes()field.floatUASTC RDO max smooth block error scale.uastcRDOMaxSmoothBlockErrorScale(float value) Sets the specified value to theuastcRDOMaxSmoothBlockErrorScale()field.floatUASTC RDO max smooth block standard deviation.uastcRDOMaxSmoothBlockStdDev(float value) Sets the specified value to theuastcRDOMaxSmoothBlockStdDev()field.booleanDisable RDO multithreading (slightly higher compression, deterministic).uastcRDONoMultithreading(boolean value) Sets the specified value to theuastcRDONoMultithreading()field.floatUASTC RDO quality scalar (lambda).uastcRDOQualityScalar(float value) Sets the specified value to theuastcRDOQualityScalar()field.booleanverbose()If true, prints Basis Universal encoder operation details tostdout.verbose(boolean value) Sets the specified value to theverbose()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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. -
UASTC
public static final int UASTCThe struct member offsets. -
VERBOSE
public static final int VERBOSEThe struct member offsets. -
NOSSE
public static final int NOSSEThe struct member offsets. -
THREADCOUNT
public static final int THREADCOUNTThe struct member offsets. -
COMPRESSIONLEVEL
public static final int COMPRESSIONLEVELThe struct member offsets. -
QUALITYLEVEL
public static final int QUALITYLEVELThe struct member offsets. -
MAXENDPOINTS
public static final int MAXENDPOINTSThe struct member offsets. -
ENDPOINTRDOTHRESHOLD
public static final int ENDPOINTRDOTHRESHOLDThe struct member offsets. -
MAXSELECTORS
public static final int MAXSELECTORSThe struct member offsets. -
SELECTORRDOTHRESHOLD
public static final int SELECTORRDOTHRESHOLDThe struct member offsets. -
INPUTSWIZZLE
public static final int INPUTSWIZZLEThe struct member offsets. -
NORMALMAP
public static final int NORMALMAPThe struct member offsets. -
SEPARATERGTORGB_A
public static final int SEPARATERGTORGB_AThe struct member offsets. -
PRESWIZZLE
public static final int PRESWIZZLEThe struct member offsets. -
NOENDPOINTRDO
public static final int NOENDPOINTRDOThe struct member offsets. -
NOSELECTORRDO
public static final int NOSELECTORRDOThe struct member offsets. -
UASTCFLAGS
public static final int UASTCFLAGSThe struct member offsets. -
UASTCRDO
public static final int UASTCRDOThe struct member offsets. -
UASTCRDOQUALITYSCALAR
public static final int UASTCRDOQUALITYSCALARThe struct member offsets. -
UASTCRDODICTSIZE
public static final int UASTCRDODICTSIZEThe struct member offsets. -
UASTCRDOMAXSMOOTHBLOCKERRORSCALE
public static final int UASTCRDOMAXSMOOTHBLOCKERRORSCALEThe struct member offsets. -
UASTCRDOMAXSMOOTHBLOCKSTDDEV
public static final int UASTCRDOMAXSMOOTHBLOCKSTDDEVThe struct member offsets. -
UASTCRDODONTFAVORSIMPLERMODES
public static final int UASTCRDODONTFAVORSIMPLERMODESThe struct member offsets. -
UASTCRDONOMULTITHREADING
public static final int UASTCRDONOMULTITHREADINGThe struct member offsets.
-
-
Constructor Details
-
ktxBasisParams
Creates aktxBasisParamsinstance 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<ktxBasisParams>
-
structSize
public int structSize()Size of this struct.Used so library can tell which version of struct is being passed.
-
uastc
public boolean uastc()True to use UASTC base, false to use ETC1S base. -
verbose
public boolean verbose()If true, prints Basis Universal encoder operation details tostdout.Not recommended for GUI apps.
-
noSSE
public boolean noSSE()True to forbid use of the SSE instruction set.Ignored if CPU does not support SSE.
-
threadCount
public int threadCount()Number of threads used for compression. Default is 1. -
compressionLevel
public int compressionLevel()Encoding speed vs. quality tradeoff.Range is
[0,5]. Higher values are slower, but give higher quality. There is no default. Callers must explicitly set this value. Callers can useETC1S_DEFAULT_COMPRESSION_LEVELas a default value. Currently this is 2. -
qualityLevel
public int qualityLevel()Compression quality.Range is
[1,255]. Lower gives better compression/lower quality/faster. Higher gives less compression/higher quality/slower. This automatically determines values formaxEndpoints,maxSelectors,endpointRDOThresholdandselectorRDOThresholdfor the target quality level. Setting these parameters overrides the values determined byqualityLevelwhich defaults to 128 if neither it nor both ofmaxEndpointsandmaxSelectorshave been set.Note: Both of
maxEndpointsandmaxSelectorsmust be set for them to have any effect.qualityLevel willonly determine values forendpointRDOThresholdandselectorRDOThresholdwhen its value exceeds 128, otherwise their defaults will be used. -
maxEndpoints
public int maxEndpoints()Manually set the max number of color endpoint clusters.Range is
[1,16128]. Default is 0, unset. If this is set,maxSelectorsmust also be set, otherwise the value will be ignored. -
endpointRDOThreshold
public float endpointRDOThreshold()Set endpoint RDO quality threshold.The default is 1.25. Lower is higher quality but less quality per output bit (try
[1.0,3.0]). This will override the value chosen byqualityLevel. -
maxSelectors
public int maxSelectors()Manually set the max number of color selector clusters.Range is
[1,16128]. Default is 0, unset. If this is set,maxEndpointsmust also be set, otherwise the value will be ignored. -
selectorRDOThreshold
public float selectorRDOThreshold()Set selector RDO quality threshold.The default is 1.5. Lower is higher quality but less quality per output bit (try
[1.0,3.0]). This will override the value chosen byqualityLevel. -
inputSwizzle
A swizzle to apply before encoding.It must match the regular expression
/^[rgba01]{4}$/. If both this andpreSwizzleare specifiedTexture2_CompressBasisExwill raiseINVALID_OPERATION. -
inputSwizzle
public byte inputSwizzle(int index) A swizzle to apply before encoding.It must match the regular expression
/^[rgba01]{4}$/. If both this andpreSwizzleare specifiedTexture2_CompressBasisExwill raiseINVALID_OPERATION. -
normalMap
public boolean normalMap()Tunes codec parameters for better quality on normal maps (no selector RDO, no endpoint RDO) and sets the texture's DFD appropriately.Only valid for linear textures.
-
separateRGToRGB_A
public boolean separateRGToRGB_A()deprecated -
preSwizzle
public boolean preSwizzle()If the texture hasKTXswizzlemetadata, apply it before compressing.Swizzling, like
rabbmay yield drastically different error metrics if done after supercompression. -
noEndpointRDO
public boolean noEndpointRDO()Disable endpoint rate distortion optimizations.Slightly faster, less noisy output, but lower quality per output bit. Default is
FALSE. -
noSelectorRDO
public boolean noSelectorRDO()Disable selector rate distortion optimizations.Slightly faster, less noisy output, but lower quality per output bit. Default is
FALSE. -
uastcFlags
public int uastcFlags()A set ofktx_pack_uastc_flag_bits_econtrolling UASTC encoding. -
uastcRDO
public boolean uastcRDO()Enable Rate Distortion Optimization (RDO) post-processing. -
uastcRDOQualityScalar
public float uastcRDOQualityScalar()UASTC RDO quality scalar (lambda).Lower values yield higher quality/larger LZ compressed files, higher values yield lower quality/smaller LZ compressed files. A good range to try is
[.2,4]. Full range is[.001,50.0]. Default is 1.0. -
uastcRDODictSize
public int uastcRDODictSize()UASTC RDO dictionary size in bytes.Default is 4096. Lower values=faster, but give less compression. Range is
[64,65536]. -
uastcRDOMaxSmoothBlockErrorScale
public float uastcRDOMaxSmoothBlockErrorScale()UASTC RDO max smooth block error scale.Range is
[1,300]. Default is 10.0, 1.0 is disabled. Larger values suppress more artifacts (and allocate more bits) on smooth blocks. -
uastcRDOMaxSmoothBlockStdDev
public float uastcRDOMaxSmoothBlockStdDev()UASTC RDO max smooth block standard deviation.Range is
[.01,65536.0]. Default is 18.0. Larger values expand the range of blocks considered smooth. -
uastcRDODontFavorSimplerModes
public boolean uastcRDODontFavorSimplerModes()Do not favor simpler UASTC modes in RDO mode. -
uastcRDONoMultithreading
public boolean uastcRDONoMultithreading()Disable RDO multithreading (slightly higher compression, deterministic). -
structSize
Sets the specified value to thestructSize()field. -
uastc
Sets the specified value to theuastc()field. -
verbose
Sets the specified value to theverbose()field. -
noSSE
Sets the specified value to thenoSSE()field. -
threadCount
Sets the specified value to thethreadCount()field. -
compressionLevel
Sets the specified value to thecompressionLevel()field. -
qualityLevel
Sets the specified value to thequalityLevel()field. -
maxEndpoints
Sets the specified value to themaxEndpoints()field. -
endpointRDOThreshold
Sets the specified value to theendpointRDOThreshold()field. -
maxSelectors
Sets the specified value to themaxSelectors()field. -
selectorRDOThreshold
Sets the specified value to theselectorRDOThreshold()field. -
inputSwizzle
Copies the specifiedByteBufferto theinputSwizzle()field. -
inputSwizzle
Sets the specified value at the specified index of theinputSwizzle()field. -
normalMap
Sets the specified value to thenormalMap()field. -
separateRGToRGB_A
Sets the specified value to theseparateRGToRGB_A()field. -
preSwizzle
Sets the specified value to thepreSwizzle()field. -
noEndpointRDO
Sets the specified value to thenoEndpointRDO()field. -
noSelectorRDO
Sets the specified value to thenoSelectorRDO()field. -
uastcFlags
Sets the specified value to theuastcFlags()field. -
uastcRDO
Sets the specified value to theuastcRDO()field. -
uastcRDOQualityScalar
Sets the specified value to theuastcRDOQualityScalar()field. -
uastcRDODictSize
Sets the specified value to theuastcRDODictSize()field. -
uastcRDOMaxSmoothBlockErrorScale
Sets the specified value to theuastcRDOMaxSmoothBlockErrorScale()field. -
uastcRDOMaxSmoothBlockStdDev
Sets the specified value to theuastcRDOMaxSmoothBlockStdDev()field. -
uastcRDODontFavorSimplerModes
Sets the specified value to theuastcRDODontFavorSimplerModes()field. -
uastcRDONoMultithreading
Sets the specified value to theuastcRDONoMultithreading()field. -
set
public ktxBasisParams set(int structSize, boolean uastc, boolean verbose, boolean noSSE, int threadCount, int compressionLevel, int qualityLevel, int maxEndpoints, float endpointRDOThreshold, int maxSelectors, float selectorRDOThreshold, ByteBuffer inputSwizzle, boolean normalMap, boolean separateRGToRGB_A, boolean preSwizzle, boolean noEndpointRDO, boolean noSelectorRDO, int uastcFlags, boolean uastcRDO, float uastcRDOQualityScalar, int uastcRDODictSize, float uastcRDOMaxSmoothBlockErrorScale, float uastcRDOMaxSmoothBlockStdDev, boolean uastcRDODontFavorSimplerModes, boolean uastcRDONoMultithreading) 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 newktxBasisParamsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newktxBasisParamsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newktxBasisParamsinstance allocated withBufferUtils. -
create
Returns a newktxBasisParamsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newktxBasisParams.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newktxBasisParams.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newktxBasisParams.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aktxBasisParams.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newktxBasisParamsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newktxBasisParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newktxBasisParams.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newktxBasisParams.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(). -
nuastc
public static boolean nuastc(long struct) Unsafe version ofuastc(). -
nverbose
public static boolean nverbose(long struct) Unsafe version ofverbose(). -
nnoSSE
public static boolean nnoSSE(long struct) Unsafe version ofnoSSE(). -
nthreadCount
public static int nthreadCount(long struct) Unsafe version ofthreadCount(). -
ncompressionLevel
public static int ncompressionLevel(long struct) Unsafe version ofcompressionLevel(). -
nqualityLevel
public static int nqualityLevel(long struct) Unsafe version ofqualityLevel(). -
nmaxEndpoints
public static int nmaxEndpoints(long struct) Unsafe version ofmaxEndpoints(). -
nendpointRDOThreshold
public static float nendpointRDOThreshold(long struct) Unsafe version ofendpointRDOThreshold(). -
nmaxSelectors
public static int nmaxSelectors(long struct) Unsafe version ofmaxSelectors(). -
nselectorRDOThreshold
public static float nselectorRDOThreshold(long struct) Unsafe version ofselectorRDOThreshold(). -
ninputSwizzle
Unsafe version ofinputSwizzle(). -
ninputSwizzle
public static byte ninputSwizzle(long struct, int index) Unsafe version ofinputSwizzle. -
nnormalMap
public static boolean nnormalMap(long struct) Unsafe version ofnormalMap(). -
nseparateRGToRGB_A
public static boolean nseparateRGToRGB_A(long struct) Unsafe version ofseparateRGToRGB_A(). -
npreSwizzle
public static boolean npreSwizzle(long struct) Unsafe version ofpreSwizzle(). -
nnoEndpointRDO
public static boolean nnoEndpointRDO(long struct) Unsafe version ofnoEndpointRDO(). -
nnoSelectorRDO
public static boolean nnoSelectorRDO(long struct) Unsafe version ofnoSelectorRDO(). -
nuastcFlags
public static int nuastcFlags(long struct) Unsafe version ofuastcFlags(). -
nuastcRDO
public static boolean nuastcRDO(long struct) Unsafe version ofuastcRDO(). -
nuastcRDOQualityScalar
public static float nuastcRDOQualityScalar(long struct) Unsafe version ofuastcRDOQualityScalar(). -
nuastcRDODictSize
public static int nuastcRDODictSize(long struct) Unsafe version ofuastcRDODictSize(). -
nuastcRDOMaxSmoothBlockErrorScale
public static float nuastcRDOMaxSmoothBlockErrorScale(long struct) Unsafe version ofuastcRDOMaxSmoothBlockErrorScale(). -
nuastcRDOMaxSmoothBlockStdDev
public static float nuastcRDOMaxSmoothBlockStdDev(long struct) Unsafe version ofuastcRDOMaxSmoothBlockStdDev(). -
nuastcRDODontFavorSimplerModes
public static boolean nuastcRDODontFavorSimplerModes(long struct) Unsafe version ofuastcRDODontFavorSimplerModes(). -
nuastcRDONoMultithreading
public static boolean nuastcRDONoMultithreading(long struct) Unsafe version ofuastcRDONoMultithreading(). -
nstructSize
public static void nstructSize(long struct, int value) Unsafe version ofstructSize. -
nuastc
public static void nuastc(long struct, boolean value) Unsafe version ofuastc. -
nverbose
public static void nverbose(long struct, boolean value) Unsafe version ofverbose. -
nnoSSE
public static void nnoSSE(long struct, boolean value) Unsafe version ofnoSSE. -
nthreadCount
public static void nthreadCount(long struct, int value) Unsafe version ofthreadCount. -
ncompressionLevel
public static void ncompressionLevel(long struct, int value) Unsafe version ofcompressionLevel. -
nqualityLevel
public static void nqualityLevel(long struct, int value) Unsafe version ofqualityLevel. -
nmaxEndpoints
public static void nmaxEndpoints(long struct, int value) Unsafe version ofmaxEndpoints. -
nendpointRDOThreshold
public static void nendpointRDOThreshold(long struct, float value) Unsafe version ofendpointRDOThreshold. -
nmaxSelectors
public static void nmaxSelectors(long struct, int value) Unsafe version ofmaxSelectors. -
nselectorRDOThreshold
public static void nselectorRDOThreshold(long struct, float value) Unsafe version ofselectorRDOThreshold. -
ninputSwizzle
Unsafe version ofinputSwizzle. -
ninputSwizzle
public static void ninputSwizzle(long struct, int index, byte value) Unsafe version ofinputSwizzle. -
nnormalMap
public static void nnormalMap(long struct, boolean value) Unsafe version ofnormalMap. -
nseparateRGToRGB_A
public static void nseparateRGToRGB_A(long struct, boolean value) Unsafe version ofseparateRGToRGB_A. -
npreSwizzle
public static void npreSwizzle(long struct, boolean value) Unsafe version ofpreSwizzle. -
nnoEndpointRDO
public static void nnoEndpointRDO(long struct, boolean value) Unsafe version ofnoEndpointRDO. -
nnoSelectorRDO
public static void nnoSelectorRDO(long struct, boolean value) Unsafe version ofnoSelectorRDO. -
nuastcFlags
public static void nuastcFlags(long struct, int value) Unsafe version ofuastcFlags. -
nuastcRDO
public static void nuastcRDO(long struct, boolean value) Unsafe version ofuastcRDO. -
nuastcRDOQualityScalar
public static void nuastcRDOQualityScalar(long struct, float value) Unsafe version ofuastcRDOQualityScalar. -
nuastcRDODictSize
public static void nuastcRDODictSize(long struct, int value) Unsafe version ofuastcRDODictSize. -
nuastcRDOMaxSmoothBlockErrorScale
public static void nuastcRDOMaxSmoothBlockErrorScale(long struct, float value) Unsafe version ofuastcRDOMaxSmoothBlockErrorScale. -
nuastcRDOMaxSmoothBlockStdDev
public static void nuastcRDOMaxSmoothBlockStdDev(long struct, float value) Unsafe version ofuastcRDOMaxSmoothBlockStdDev. -
nuastcRDODontFavorSimplerModes
public static void nuastcRDODontFavorSimplerModes(long struct, boolean value) Unsafe version ofuastcRDODontFavorSimplerModes. -
nuastcRDONoMultithreading
public static void nuastcRDONoMultithreading(long struct, boolean value) Unsafe version ofuastcRDONoMultithreading.
-