pub struct TextureMip {
pub width: u32,
pub height: u32,
pub data: Vec<u8>,
}Expand description
One mip level: dimensions plus its tightly packed level bytes (RGBA8 pixels or block-compressed data, per the owning image’s format).
Fields§
§width: u32Width in pixels.
height: u32Height in pixels.
data: Vec<u8>Pixels or compressed blocks of this level.
Trait Implementations§
Source§impl Clone for TextureMip
impl Clone for TextureMip
Source§fn clone(&self) -> TextureMip
fn clone(&self) -> TextureMip
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 moreSource§impl Debug for TextureMip
impl Debug for TextureMip
impl Eq for TextureMip
Source§impl PartialEq for TextureMip
impl PartialEq for TextureMip
impl StructuralPartialEq for TextureMip
Auto Trait Implementations§
impl Freeze for TextureMip
impl RefUnwindSafe for TextureMip
impl Send for TextureMip
impl Sync for TextureMip
impl Unpin for TextureMip
impl UnsafeUnpin for TextureMip
impl UnwindSafe for TextureMip
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.