pub struct TextureLevel {
pub width: u32,
pub height: u32,
pub format: u32,
pub data: String,
}Expand description
A primary, fallback or legacy compatibility mip level.
Fields§
§width: u32Pixel width.
height: u32Pixel height.
format: u32D3DFMT/fourCC code; zero denotes opaque legacy 16-bit pixels.
data: StringOriginal encoded pixels as lowercase hex.
Trait Implementations§
Source§impl Clone for TextureLevel
impl Clone for TextureLevel
Source§fn clone(&self) -> TextureLevel
fn clone(&self) -> TextureLevel
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 TextureLevel
impl Debug for TextureLevel
Source§impl<'de> Deserialize<'de> for TextureLevel
impl<'de> Deserialize<'de> for TextureLevel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TextureLevel
impl PartialEq for TextureLevel
Source§impl Serialize for TextureLevel
impl Serialize for TextureLevel
impl StructuralPartialEq for TextureLevel
Auto Trait Implementations§
impl Freeze for TextureLevel
impl RefUnwindSafe for TextureLevel
impl Send for TextureLevel
impl Sync for TextureLevel
impl Unpin for TextureLevel
impl UnsafeUnpin for TextureLevel
impl UnwindSafe for TextureLevel
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