#[repr(i32)]pub enum TextureCompressionType {
None,
ETC2_RGB8_UNORM,
BC1_RGB8_UNORM,
BC1_RGBA8_UNORM,
}
Expand description
Skia | GL_COMPRESSED_* | MTLPixelFormat* | VK_FORMAT_*_BLOCK
kETC2_RGB8_UNORM | ETC1_RGB8 | ETC2_RGB8 (iOS-only) | ETC2_R8G8B8_UNORM | RGB8_ETC2 | |
kBC1_RGB8_UNORM | RGB_S3TC_DXT1_EXT | N/A | BC1_RGB_UNORM
kBC1_RGBA8_UNORM | RGBA_S3TC_DXT1_EXT | BC1_RGBA (macOS-only)| BC1_RGBA_UNORM
Variants§
Implementations§
source§impl SkTextureCompressionType
impl SkTextureCompressionType
pub const Last: SkTextureCompressionType = SkTextureCompressionType::BC1_RGBA8_UNORM
source§impl SkTextureCompressionType
impl SkTextureCompressionType
pub const ETC1_RGB8: SkTextureCompressionType = SkTextureCompressionType::ETC2_RGB8_UNORM
Trait Implementations§
source§impl Clone for SkTextureCompressionType
impl Clone for SkTextureCompressionType
source§fn clone(&self) -> SkTextureCompressionType
fn clone(&self) -> SkTextureCompressionType
Returns a copy 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 SkTextureCompressionType
impl Debug for SkTextureCompressionType
source§impl Hash for SkTextureCompressionType
impl Hash for SkTextureCompressionType
source§impl PartialEq<SkTextureCompressionType> for SkTextureCompressionType
impl PartialEq<SkTextureCompressionType> for SkTextureCompressionType
source§fn eq(&self, other: &SkTextureCompressionType) -> bool
fn eq(&self, other: &SkTextureCompressionType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SkTextureCompressionType
impl Eq for SkTextureCompressionType
impl StructuralEq for SkTextureCompressionType
impl StructuralPartialEq for SkTextureCompressionType
Auto Trait Implementations§
impl RefUnwindSafe for SkTextureCompressionType
impl Send for SkTextureCompressionType
impl Sync for SkTextureCompressionType
impl Unpin for SkTextureCompressionType
impl UnwindSafe for SkTextureCompressionType
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