pub enum ImgFormat {
R(u8),
RG(u8),
RGB(u8),
RGBA(u8),
}Expand description
Texture image format, encoding channel count and bit depth.
Each variant carries the per-channel bit depth (e.g. RGBA(8) = 4×8-bit).
Variants§
Implementations§
Trait Implementations§
impl Copy for ImgFormat
impl StructuralPartialEq for ImgFormat
Auto Trait Implementations§
impl Freeze for ImgFormat
impl RefUnwindSafe for ImgFormat
impl Send for ImgFormat
impl Sync for ImgFormat
impl Unpin for ImgFormat
impl UnsafeUnpin for ImgFormat
impl UnwindSafe for ImgFormat
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