Enum image::codecs::dxt::DxtVariant
source · pub enum DxtVariant {
DXT1,
DXT3,
DXT5,
}
👎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/1623Expand 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
👎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/1623The DXT1 format. 48 bytes of RGB data in a 4x4 pixel square is compressed into an 8 byte block of DXT1 data
DXT3
👎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/1623The DXT3 format. 64 bytes of RGBA data in a 4x4 pixel square is compressed into a 16 byte block of DXT3 data
DXT5
👎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/1623The DXT5 format. 64 bytes of RGBA data in a 4x4 pixel square is compressed into a 16 byte block of DXT5 data
Implementations§
source§impl DxtVariant
impl DxtVariant
sourcepub 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
squish
crate instead. See https://github.com/image-rs/image/issues/1623Returns the color type that is stored in this DXT variant
Trait Implementations§
source§impl Clone for DxtVariant
impl Clone for DxtVariant
source§fn clone(&self) -> DxtVariant
fn clone(&self) -> DxtVariant
Returns a copy 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 DxtVariant
impl Debug for DxtVariant
source§impl PartialEq<DxtVariant> for DxtVariant
impl PartialEq<DxtVariant> for DxtVariant
source§fn eq(&self, other: &DxtVariant) -> bool
fn eq(&self, other: &DxtVariant) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.