Enum image::dxt::DXTVariant
source · pub enum DXTVariant {
DXT1,
DXT3,
DXT5,
}
Expand description
What version of DXT compression are we using? Note that DXT2 and DXT4 are left away as they’re just DXT3 and DXT5 with premultiplied alpha
Variants
DXT1
The DXT1 format. 48 bytes of RGB data in a 4x4 pixel square is compressed into an 8 byte block of DXT1 data
DXT3
The DXT3 format. 64 bytes of RGBA data in a 4x4 pixel square is compressed into a 16 byte block of DXT3 data
DXT5
The DXT5 format. 64 bytes of RGBA data in a 4x4 pixel square is compressed into a 16 byte block of DXT5 data
Implementations
sourceimpl DXTVariant
impl DXTVariant
Trait Implementations
sourceimpl Clone for DXTVariant
impl Clone for DXTVariant
sourcefn clone(&self) -> DXTVariant
fn clone(&self) -> DXTVariant
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DXTVariant
impl Debug for DXTVariant
sourceimpl PartialEq<DXTVariant> for DXTVariant
impl PartialEq<DXTVariant> for DXTVariant
sourcefn eq(&self, other: &DXTVariant) -> bool
fn eq(&self, other: &DXTVariant) -> bool
impl Copy for DXTVariant
impl Eq for DXTVariant
impl StructuralEq for DXTVariant
impl StructuralPartialEq for DXTVariant
Auto Trait Implementations
impl RefUnwindSafe for DXTVariant
impl Send for DXTVariant
impl Sync for DXTVariant
impl Unpin for DXTVariant
impl UnwindSafe for DXTVariant
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more