Struct dds::Dds[][src]

pub struct Dds<S = Vec<u8>> { /* fields omitted */ }

Implementations

impl Dds[src]

pub fn load<P: AsRef<Path>>(path: P) -> Result<Dds, Error>[src]

pub fn from_bytes(bytes: &[u8]) -> Result<Dds, Error>[src]

impl<S: Borrow<[u8]>> Dds<S>[src]

pub fn mipmap(&self, level: usize) -> Option<Dds<SliceOrVec<'_>>>[src]

pub fn mipmap_face(
    &self,
    level: usize,
    face: usize
) -> Result<Dds<&[u8]>, Error>
[src]

pub fn face(&self, face: usize) -> Result<Dds<&[u8]>, Error>[src]

pub fn save<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>[src]

pub fn data(&self) -> &[u8][src]

impl<S> Dds<S>[src]

pub fn width(&self) -> usize[src]

pub fn height(&self) -> usize[src]

pub fn mipmap_count(&self) -> usize[src]

pub fn fourcc(&self) -> u32[src]

pub fn fourcc_str(&self) -> String[src]

pub fn bpp(&self) -> Result<usize, Error>[src]

pub fn r_bitmask(&self) -> u32[src]

pub fn g_bitmask(&self) -> u32[src]

pub fn b_bitmask(&self) -> u32[src]

pub fn a_bitmask(&self) -> u32[src]

pub fn linear_size(&self) -> usize[src]

pub fn pitch(&self) -> usize[src]

pub fn is_compressed(&self) -> bool[src]

pub fn format(&self) -> Result<DXGIFormat, Error>[src]

pub fn is_cubemap(&self) -> bool[src]

pub fn is_cubemap_allfaces(&self) -> bool[src]

Trait Implementations

impl<S: Clone> Clone for Dds<S>[src]

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.