pub enum DdsCompression {
Bc1,
Bc2,
Bc3,
Bc4,
Bc5,
Bc6h,
Bc7,
Rgba32,
Rgb24,
Unknown,
}Expand description
Compression formats for DDS containers
DirectDraw Surface (DDS) files can contain various compressed and uncompressed formats. This enum identifies the specific compression algorithm used within the DDS container.
Variants§
Bc1
Block Compression 1 (DXT1) - RGB, 1-bit alpha
Bc2
Block Compression 2 (DXT3) - RGBA with explicit alpha
Bc3
Block Compression 3 (DXT5) - RGBA with interpolated alpha
Bc4
Block Compression 4 (ATI1) - Single channel
Bc5
Block Compression 5 (ATI2) - Two channel (RG)
Bc6h
Block Compression 6H - HDR format
Bc7
Block Compression 7 - High quality RGB/RGBA
Rgba32
Uncompressed RGBA32
Rgb24
Uncompressed RGB24
Unknown
Other/Unknown DDS format
Trait Implementations§
Source§impl Clone for DdsCompression
impl Clone for DdsCompression
Source§fn clone(&self) -> DdsCompression
fn clone(&self) -> DdsCompression
Returns a duplicate 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 DdsCompression
impl Debug for DdsCompression
Source§impl Hash for DdsCompression
impl Hash for DdsCompression
Source§impl Ord for DdsCompression
impl Ord for DdsCompression
Source§fn cmp(&self, other: &DdsCompression) -> Ordering
fn cmp(&self, other: &DdsCompression) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DdsCompression
impl PartialEq for DdsCompression
Source§impl PartialOrd for DdsCompression
impl PartialOrd for DdsCompression
impl Copy for DdsCompression
impl Eq for DdsCompression
impl StructuralPartialEq for DdsCompression
Auto Trait Implementations§
impl Freeze for DdsCompression
impl RefUnwindSafe for DdsCompression
impl Send for DdsCompression
impl Sync for DdsCompression
impl Unpin for DdsCompression
impl UnsafeUnpin for DdsCompression
impl UnwindSafe for DdsCompression
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more