Struct ktxBasisParams

Source
#[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

Source§

fn clone(&self) -> ktxBasisParams

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ktxBasisParams

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for ktxBasisParams

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.