pub enum PkmCompression {
Etc1,
Etc2,
Etc2A1,
Etc2A8,
EacR,
EacRg,
EacRSigned,
EacRgSigned,
Unknown,
}Expand description
Compression formats for PKM containers (ETC/EAC family)
PKM (PowerVR Texture Compression) format is used to store various ETC and EAC compressed textures. This enum identifies the specific compression variant.
Variants§
Etc1
ETC1 RGB (original format)
Etc2
ETC2 RGB (enhanced)
Etc2A1
ETC2 with 1-bit punch-through alpha
Etc2A8
ETC2 with 8-bit alpha channel
EacR
EAC single channel (R11)
EacRg
EAC two channel (RG11)
EacRSigned
EAC single channel signed (R11_SIGNED)
EacRgSigned
EAC two channel signed (RG11_SIGNED)
Unknown
Other/Unknown PKM format
Trait Implementations§
Source§impl Clone for PkmCompression
impl Clone for PkmCompression
Source§fn clone(&self) -> PkmCompression
fn clone(&self) -> PkmCompression
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 PkmCompression
impl Debug for PkmCompression
Source§impl Hash for PkmCompression
impl Hash for PkmCompression
Source§impl Ord for PkmCompression
impl Ord for PkmCompression
Source§fn cmp(&self, other: &PkmCompression) -> Ordering
fn cmp(&self, other: &PkmCompression) -> 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 PkmCompression
impl PartialEq for PkmCompression
Source§impl PartialOrd for PkmCompression
impl PartialOrd for PkmCompression
impl Copy for PkmCompression
impl Eq for PkmCompression
impl StructuralPartialEq for PkmCompression
Auto Trait Implementations§
impl Freeze for PkmCompression
impl RefUnwindSafe for PkmCompression
impl Send for PkmCompression
impl Sync for PkmCompression
impl Unpin for PkmCompression
impl UnsafeUnpin for PkmCompression
impl UnwindSafe for PkmCompression
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