pub struct DDS {
pub header: Header,
pub layers: Vec<Vec<RGBA<u8>>>,
}
Expand description
Represents a parsed DDS file
Fields§
§header: Header
The parsed DDS header
layers: Vec<Vec<RGBA<u8>>>
Mipmap layers
Implementations§
Source§impl DDS
impl DDS
Sourcepub fn parse_header<R: Read>(buf: &mut R) -> Result<Header, ParseError>
pub fn parse_header<R: Read>(buf: &mut R) -> Result<Header, ParseError>
Parses a Header
object from a raw u8
buffer.
Sourcepub fn parse_header_raw<R: Read>(buf: &mut R) -> Result<RawHeader, ParseError>
pub fn parse_header_raw<R: Read>(buf: &mut R) -> Result<RawHeader, ParseError>
Parses the raw header from the image. Useful for getting information not contained in the normal parsed Header struct.
Auto Trait Implementations§
impl Freeze for DDS
impl RefUnwindSafe for DDS
impl Send for DDS
impl Sync for DDS
impl Unpin for DDS
impl UnwindSafe for DDS
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