Enum image::dxt::DXTVariant [−][src]
pub enum DXTVariant {
DXT1,
DXT3,
DXT5,
}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
DXT1The DXT1 format. 48 bytes of RGB data in a 4x4 pixel square is compressed into an 8 byte block of DXT1 data
DXT3The DXT3 format. 64 bytes of RGBA data in a 4x4 pixel square is compressed into a 16 byte block of DXT3 data
DXT5The DXT5 format. 64 bytes of RGBA data in a 4x4 pixel square is compressed into a 16 byte block of DXT5 data
Methods
impl DXTVariant[src]
impl DXTVariantTrait Implementations
impl Clone for DXTVariant[src]
impl Clone for DXTVariantfn clone(&self) -> DXTVariant[src]
fn clone(&self) -> DXTVariantReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for DXTVariant[src]
impl Copy for DXTVariantimpl Debug for DXTVariant[src]
impl Debug for DXTVariantfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for DXTVariant[src]
impl PartialEq for DXTVariantfn eq(&self, other: &DXTVariant) -> bool[src]
fn eq(&self, other: &DXTVariant) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for DXTVariant[src]
impl Eq for DXTVariantAuto Trait Implementations
impl Send for DXTVariant
impl Send for DXTVariantimpl Sync for DXTVariant
impl Sync for DXTVariant