pub struct TextureImage {
pub format: TextureFormat,
pub mips: Vec<TextureMip>,
}Expand description
A decoded 2D texture: its GPU format plus one or more mip levels, level 0
first. The backend uploads mips directly for compressed formats and
generates the minification chain from mips[0] for RGBA8.
Fields§
§format: TextureFormatGPU pixel format of every mip.
mips: Vec<TextureMip>Mip levels, level 0 first.
Implementations§
Source§impl TextureImage
impl TextureImage
Trait Implementations§
Source§impl Clone for TextureImage
impl Clone for TextureImage
Source§fn clone(&self) -> TextureImage
fn clone(&self) -> TextureImage
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 TextureImage
impl Debug for TextureImage
impl Eq for TextureImage
Source§impl PartialEq for TextureImage
impl PartialEq for TextureImage
impl StructuralPartialEq for TextureImage
Auto Trait Implementations§
impl Freeze for TextureImage
impl RefUnwindSafe for TextureImage
impl Send for TextureImage
impl Sync for TextureImage
impl Unpin for TextureImage
impl UnsafeUnpin for TextureImage
impl UnwindSafe for TextureImage
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.