#[repr(C)]pub struct ktxAstcParams {
pub structSize: ktx_uint32_t,
pub verbose: ktx_bool_t,
pub threadCount: ktx_uint32_t,
pub blockDimension: ktx_uint32_t,
pub mode: ktx_uint32_t,
pub qualityLevel: ktx_uint32_t,
pub normalMap: ktx_bool_t,
pub perceptual: ktx_bool_t,
pub inputSwizzle: [c_char; 4],
}Expand description
@memberof ktxTexture @~English @brief Structure for passing extended parameters to ktxTexture_CompressAstc.
Passing a struct initialized to 0 (e.g. “ = {0};“) will use blockDimension 4x4, mode LDR and qualityLevel FASTEST. Setting qualityLevel to KTX_PACK_ASTC_QUALITY_LEVEL_MEDIUM is recommended.
Fields§
§structSize: ktx_uint32_t§verbose: ktx_bool_t§threadCount: ktx_uint32_t§blockDimension: ktx_uint32_t§mode: ktx_uint32_t§qualityLevel: ktx_uint32_t§normalMap: ktx_bool_t§perceptual: ktx_bool_t§inputSwizzle: [c_char; 4]Trait Implementations§
Source§impl Clone for ktxAstcParams
impl Clone for ktxAstcParams
Source§fn clone(&self) -> ktxAstcParams
fn clone(&self) -> ktxAstcParams
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 ktxAstcParams
impl Debug for ktxAstcParams
impl Copy for ktxAstcParams
Auto Trait Implementations§
impl Freeze for ktxAstcParams
impl RefUnwindSafe for ktxAstcParams
impl Send for ktxAstcParams
impl Sync for ktxAstcParams
impl Unpin for ktxAstcParams
impl UnwindSafe for ktxAstcParams
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