#[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().
If you only want default values, use ktxTexture2_CompressBasis(). Here, at a minimum you must initialize the structure as follows: @code ktxBasisParams params = {0}; params.structSize = sizeof(params); params.compressionLevel = KTX_ETC1S_DEFAULT_COMPRESSION_LEVEL; @endcode
@e compressionLevel has to be explicitly set because 0 is a valid @e 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.
Fields§
§structSize: ktx_uint32_t
§uastc: ktx_bool_t
§verbose: ktx_bool_t
§noSSE: ktx_bool_t
§threadCount: ktx_uint32_t
§compressionLevel: ktx_uint32_t
§qualityLevel: ktx_uint32_t
§maxEndpoints: ktx_uint32_t
§endpointRDOThreshold: f32
§maxSelectors: ktx_uint32_t
§selectorRDOThreshold: f32
§inputSwizzle: [c_char; 4]
§normalMap: ktx_bool_t
§separateRGToRGB_A: ktx_bool_t
§preSwizzle: ktx_bool_t
§noEndpointRDO: ktx_bool_t
§noSelectorRDO: ktx_bool_t
§uastcFlags: ktx_pack_uastc_flags
§uastcRDO: ktx_bool_t
§uastcRDOQualityScalar: f32
§uastcRDODictSize: ktx_uint32_t
§uastcRDOMaxSmoothBlockErrorScale: f32
§uastcRDOMaxSmoothBlockStdDev: f32
§uastcRDODontFavorSimplerModes: ktx_bool_t
§uastcRDONoMultithreading: ktx_bool_t
Trait Implementations§
Source§impl Clone for ktxBasisParams
impl Clone for ktxBasisParams
Source§fn clone(&self) -> ktxBasisParams
fn clone(&self) -> ktxBasisParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ktxBasisParams
impl Debug for ktxBasisParams
impl Copy for ktxBasisParams
Auto Trait Implementations§
impl Freeze for ktxBasisParams
impl RefUnwindSafe for ktxBasisParams
impl Send for ktxBasisParams
impl Sync for ktxBasisParams
impl Unpin for ktxBasisParams
impl UnwindSafe for ktxBasisParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more