pub enum TextureData {
Texels(Vec<Texel>),
Compressed(Vec<u8>),
}
Expand description
Content of texture data
Variants§
Texels(Vec<Texel>)
Uncompressed texture data as texels (when height > 0)
Compressed(Vec<u8>)
Compressed texture data as raw bytes (when height == 0)
Trait Implementations§
Source§impl Clone for TextureData
impl Clone for TextureData
Source§fn clone(&self) -> TextureData
fn clone(&self) -> TextureData
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 moreAuto Trait Implementations§
impl Freeze for TextureData
impl RefUnwindSafe for TextureData
impl Send for TextureData
impl Sync for TextureData
impl Unpin for TextureData
impl UnwindSafe for TextureData
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