pub struct Header {Show 14 fields
pub version: Version,
pub width: u16,
pub height: u16,
pub depth: u16,
pub flags: TextureFlags,
pub frame_count: u16,
pub start_frame: u16,
pub reflectivity: [f32; 3],
pub bump_map_scale: f32,
pub image_format: ImageFormat,
pub mip_count: u8,
pub thumbnail_format: Option<ImageFormat>,
pub thumbnail_width: u8,
pub thumbnail_height: u8,
}Fields§
§version: Version§width: u16§height: u16§depth: u16Slices of a volume texture, 1 for everything else
flags: TextureFlags§frame_count: u16§start_frame: u16§reflectivity: [f32; 3]§bump_map_scale: f32§image_format: ImageFormat§mip_count: u8§thumbnail_format: Option<ImageFormat>None when the VTF has no thumbnail
thumbnail_width: u8§thumbnail_height: u8Implementations§
Trait Implementations§
impl Copy for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Header
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