pub struct Dds<S = Vec<u8>> { /* private fields */ }
Implementations§
Source§impl<S: Borrow<[u8]>> Dds<S>
impl<S: Borrow<[u8]>> Dds<S>
pub fn mipmap(&self, level: usize) -> Option<Dds<Cow<'_, [u8]>>>
pub fn mipmap_face( &self, level: usize, face: usize, ) -> Result<Dds<&[u8]>, Error>
pub fn face(&self, face: usize) -> Result<Dds<&[u8]>, Error>
pub fn save<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>
pub fn data(&self) -> &[u8] ⓘ
Source§impl<S> Dds<S>
impl<S> Dds<S>
pub fn width(&self) -> usize
pub fn height(&self) -> usize
pub fn mipmap_count(&self) -> usize
pub fn fourcc(&self) -> u32
pub fn fourcc_str(&self) -> String
pub fn bpp(&self) -> Result<usize, Error>
pub fn r_bitmask(&self) -> u32
pub fn g_bitmask(&self) -> u32
pub fn b_bitmask(&self) -> u32
pub fn a_bitmask(&self) -> u32
pub fn linear_size(&self) -> usize
pub fn pitch(&self) -> usize
pub fn is_compressed(&self) -> bool
pub fn format(&self) -> Result<DXGIFormat, Error>
pub fn is_cubemap(&self) -> bool
pub fn is_cubemap_allfaces(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Dds<S>where
S: Freeze,
impl<S> RefUnwindSafe for Dds<S>where
S: RefUnwindSafe,
impl<S> Send for Dds<S>where
S: Send,
impl<S> Sync for Dds<S>where
S: Sync,
impl<S> Unpin for Dds<S>where
S: Unpin,
impl<S> UnwindSafe for Dds<S>where
S: UnwindSafe,
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