Type Alias image::codecs::dxt::DxtVariant

source ·
pub type DxtVariant = DXTVariant;
Expand description

DXT compression version.

An alias of DXTVariant.

TODO: remove when DXTVariant is renamed.

Aliased Type§

enum DxtVariant {
    DXT1,
    DXT3,
    DXT5,
}

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

source§

impl DXTVariant

source

pub fn color_type(self) -> ColorType

Returns the color type that is stored in this DXT variant

Trait Implementations

source§

impl Clone for DXTVariant

source§

fn clone(&self) -> DXTVariant

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DXTVariant

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for DXTVariant

source§

fn eq(&self, other: &DXTVariant) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for DXTVariant

source§

impl Eq for DXTVariant

source§

impl StructuralPartialEq for DXTVariant