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
DEPRECATED: The name of this enum will be changed to DxtVariant
.
TODO: rename to DxtVariant
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
sourcepub fn color_type(self) -> ColorType
pub fn color_type(self) -> ColorType
Returns the color type that is stored in this DXT variant
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 more
sourceimpl Debug for DXTVariant
impl Debug for DXTVariant
sourceimpl PartialEq<DXTVariant> for DXTVariant
impl PartialEq<DXTVariant> for DXTVariant
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more