pub enum PvrtcCompression {
Pvrtc2BppRgb,
Pvrtc2BppRgba,
Pvrtc4BppRgb,
Pvrtc4BppRgba,
Etc2Rgb,
Etc2Rgba,
Etc2RgbA1,
EacR11,
EacRg11,
Unknown,
}Expand description
Compression formats for PVRTC containers
PowerVR containers can contain different compression formats beyond just PVRTC. This enum identifies the specific compression algorithm used within the PowerVR container.
Variants§
Pvrtc2BppRgb
PVRTC 2 bits per pixel RGB
Pvrtc2BppRgba
PVRTC 2 bits per pixel RGBA
Pvrtc4BppRgb
PVRTC 4 bits per pixel RGB
Pvrtc4BppRgba
PVRTC 4 bits per pixel RGBA
Etc2Rgb
ETC2 RGB compression
Etc2Rgba
ETC2 RGBA compression
Etc2RgbA1
ETC2 RGB with 1-bit alpha
EacR11
EAC R11 (single channel)
EacRg11
EAC RG11 (dual channel)
Unknown
Other/Unknown format
Trait Implementations§
Source§impl Clone for PvrtcCompression
impl Clone for PvrtcCompression
Source§fn clone(&self) -> PvrtcCompression
fn clone(&self) -> PvrtcCompression
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 PvrtcCompression
impl Debug for PvrtcCompression
Source§impl Hash for PvrtcCompression
impl Hash for PvrtcCompression
Source§impl Ord for PvrtcCompression
impl Ord for PvrtcCompression
Source§fn cmp(&self, other: &PvrtcCompression) -> Ordering
fn cmp(&self, other: &PvrtcCompression) -> 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 PvrtcCompression
impl PartialEq for PvrtcCompression
Source§impl PartialOrd for PvrtcCompression
impl PartialOrd for PvrtcCompression
impl Copy for PvrtcCompression
impl Eq for PvrtcCompression
impl StructuralPartialEq for PvrtcCompression
Auto Trait Implementations§
impl Freeze for PvrtcCompression
impl RefUnwindSafe for PvrtcCompression
impl Send for PvrtcCompression
impl Sync for PvrtcCompression
impl Unpin for PvrtcCompression
impl UnsafeUnpin for PvrtcCompression
impl UnwindSafe for PvrtcCompression
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