#[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_t
§uastc: ktx_bool_t
§verbose: ktx_bool_t
§noSSE: ktx_bool_t
§threadCount: ktx_uint32_t
§compressionLevel: ktx_uint32_t
ETC1S params
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
UASTC params
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