pub enum TextureFormat {
Rgba8,
}Expand description
Pixel layout of a texture.
Variants§
Rgba8
8-bit per channel RGBA, rows top to bottom, no padding.
Implementations§
Source§impl TextureFormat
impl TextureFormat
Sourcepub const fn bytes_per_pixel(self) -> usize
pub const fn bytes_per_pixel(self) -> usize
Bytes occupied by one pixel.
Trait Implementations§
Source§impl Clone for TextureFormat
impl Clone for TextureFormat
impl Copy for TextureFormat
Source§impl Debug for TextureFormat
impl Debug for TextureFormat
Source§impl Default for TextureFormat
impl Default for TextureFormat
impl Eq for TextureFormat
Source§impl Hash for TextureFormat
impl Hash for TextureFormat
Source§impl PartialEq for TextureFormat
impl PartialEq for TextureFormat
impl StructuralPartialEq for TextureFormat
Auto Trait Implementations§
impl Forget for TextureFormat
impl Freeze for TextureFormat
impl Move for TextureFormat
impl RefUnwindSafe for TextureFormat
impl Send for TextureFormat
impl Sync for TextureFormat
impl Unpin for TextureFormat
impl UnsafeUnpin for TextureFormat
impl UnwindSafe for TextureFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.