Skip to main content

source_vtf/image/
mod.rs

1mod format;
2pub(crate) mod layout;
3
4pub use format::ImageFormat;
5
6/// One 2D image: a mip of one frame, face and depth slice, or the thumbnail
7#[derive(Debug, Clone, Copy, PartialEq, Eq)]
8pub struct RawImage<'a> {
9    pub format: ImageFormat,
10    pub width: u16,
11    pub height: u16,
12    /// Undecoded and tightly packed, block-compressed formats in whole 4x4 blocks
13    pub data: &'a [u8],
14}