pub enum DecodeContent {
Bc1,
Bc2,
Bc3,
Bc4UNorm,
Bc4SNorm,
Bc5UNorm,
Bc5SNorm,
Bc7,
Rgba8,
Bgra8,
}Expand description
Public LDR format classification (decode + encode matrix).
Variants§
Implementations§
Source§impl DecodeContent
impl DecodeContent
pub const ALL_LDR: &'static [DecodeContent]
pub fn name(self) -> &'static str
Sourcepub fn from_name(s: &str) -> Option<DecodeContent>
pub fn from_name(s: &str) -> Option<DecodeContent>
Parse CLI / docs names (bc1, bc7, rgba8, …).
pub fn block_bytes(self) -> Option<usize>
Trait Implementations§
Source§impl Clone for DecodeContent
impl Clone for DecodeContent
Source§fn clone(&self) -> DecodeContent
fn clone(&self) -> DecodeContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DecodeContent
Source§impl Debug for DecodeContent
impl Debug for DecodeContent
impl Eq for DecodeContent
Source§impl Hash for DecodeContent
impl Hash for DecodeContent
Source§impl PartialEq for DecodeContent
impl PartialEq for DecodeContent
impl StructuralPartialEq for DecodeContent
Auto Trait Implementations§
impl Freeze for DecodeContent
impl RefUnwindSafe for DecodeContent
impl Send for DecodeContent
impl Sync for DecodeContent
impl Unpin for DecodeContent
impl UnsafeUnpin for DecodeContent
impl UnwindSafe for DecodeContent
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