Enum plot_interface::dependency::image::codecs::dxt::DxtVariant
[−]pub enum DxtVariant {
DXT1,
DXT3,
DXT5,
}
DXT support will be removed or reworked in a future version. Prefer the squish
crate instead. See https://github.com/image-rs/image/issues/1623
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
DXT support will be removed or reworked in a future version. Prefer the squish
crate instead. See https://github.com/image-rs/image/issues/1623
The DXT1 format. 48 bytes of RGB data in a 4x4 pixel square is compressed into an 8 byte block of DXT1 data
DXT3
DXT support will be removed or reworked in a future version. Prefer the squish
crate instead. See https://github.com/image-rs/image/issues/1623
The DXT3 format. 64 bytes of RGBA data in a 4x4 pixel square is compressed into a 16 byte block of DXT3 data
DXT5
DXT support will be removed or reworked in a future version. Prefer the squish
crate instead. See https://github.com/image-rs/image/issues/1623
The DXT5 format. 64 bytes of RGBA data in a 4x4 pixel square is compressed into a 16 byte block of DXT5 data
Implementations
impl DxtVariant
impl DxtVariant
pub fn color_type(self) -> ColorType
👎 Deprecated: DXT support will be removed or reworked in a future version. Prefer the squish
crate instead. See https://github.com/image-rs/image/issues/1623
pub fn color_type(self) -> ColorType
DXT support will be removed or reworked in a future version. Prefer the squish
crate instead. See https://github.com/image-rs/image/issues/1623
Returns the color type that is stored in this DXT variant
Trait Implementations
impl Clone for DxtVariant
impl Clone for DxtVariant
fn 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
impl Debug for DxtVariant
impl Debug for DxtVariant
impl 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 · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<Target, Original> VectorizedInto<Target> for Original where
Target: VectorizedFrom<Original>,
impl<Target, Original> VectorizedInto<Target> for Original where
Target: VectorizedFrom<Original>,
sourcefn vectorized_into(self) -> Target
fn vectorized_into(self) -> Target
Performs the conversion.