pub struct Texture {
pub name: String,
pub version: u8,
pub width: u32,
pub height: u32,
pub format: u32,
pub mips: u32,
pub levels: Vec<TextureLevel>,
pub fallback_levels: Vec<TextureLevel>,
pub trailing: String,
}Expand description
Editable NTF storage, preserving the original encoded pixel payload.
Fields§
§name: StringOriginal length-prefixed name bytes as hex.
version: u8NTF version byte.
width: u32Primary pixel width.
height: u32Primary pixel height.
format: u32Primary D3DFMT/fourCC code.
mips: u32Mip flag, either zero or one.
levels: Vec<TextureLevel>Primary levels, in file order.
fallback_levels: Vec<TextureLevel>Hardware fallback and legacy compatibility levels.
trailing: StringOriginal unexplained DXT suffix as hex.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Texture
impl<'de> Deserialize<'de> for Texture
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
impl StructuralPartialEq for Texture
Auto Trait Implementations§
impl Freeze for Texture
impl RefUnwindSafe for Texture
impl Send for Texture
impl Sync for Texture
impl Unpin for Texture
impl UnsafeUnpin for Texture
impl UnwindSafe for Texture
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