Struct libktx_rs_sys::ktxBasisParams[][src]

#[repr(C)]
pub struct ktxBasisParams {
Show 25 fields pub structSize: ktx_uint32_t, pub uastc: ktx_bool_t, pub verbose: ktx_bool_t, pub noSSE: ktx_bool_t, pub threadCount: ktx_uint32_t, pub compressionLevel: ktx_uint32_t, pub qualityLevel: ktx_uint32_t, pub maxEndpoints: ktx_uint32_t, pub endpointRDOThreshold: f32, pub maxSelectors: ktx_uint32_t, pub selectorRDOThreshold: f32, pub inputSwizzle: [c_char; 4], pub normalMap: ktx_bool_t, pub separateRGToRGB_A: ktx_bool_t, pub preSwizzle: ktx_bool_t, pub noEndpointRDO: ktx_bool_t, pub noSelectorRDO: ktx_bool_t, pub uastcFlags: ktx_pack_uastc_flags, pub uastcRDO: ktx_bool_t, pub uastcRDOQualityScalar: f32, pub uastcRDODictSize: ktx_uint32_t, pub uastcRDOMaxSmoothBlockErrorScale: f32, pub uastcRDOMaxSmoothBlockStdDev: f32, pub uastcRDODontFavorSimplerModes: ktx_bool_t, pub uastcRDONoMultithreading: ktx_bool_t,
}
Expand description

@memberof ktxTexture2 @~English @brief Structure for passing extended parameters to ktxTexture2_CompressBasisEx.

Passing a struct initialized to 0 (e.g. “ = {};“) will use the default values. Only those settings to be modified need be non-zero.

Fields

structSize: ktx_uint32_tuastc: ktx_bool_tverbose: ktx_bool_tnoSSE: ktx_bool_tthreadCount: ktx_uint32_tcompressionLevel: ktx_uint32_t

ETC1S params

qualityLevel: ktx_uint32_tmaxEndpoints: ktx_uint32_tendpointRDOThreshold: f32maxSelectors: ktx_uint32_tselectorRDOThreshold: f32inputSwizzle: [c_char; 4]normalMap: ktx_bool_tseparateRGToRGB_A: ktx_bool_tpreSwizzle: ktx_bool_tnoEndpointRDO: ktx_bool_tnoSelectorRDO: ktx_bool_tuastcFlags: ktx_pack_uastc_flags

UASTC params

uastcRDO: ktx_bool_tuastcRDOQualityScalar: f32uastcRDODictSize: ktx_uint32_tuastcRDOMaxSmoothBlockErrorScale: f32uastcRDOMaxSmoothBlockStdDev: f32uastcRDODontFavorSimplerModes: ktx_bool_tuastcRDONoMultithreading: ktx_bool_t

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.