Struct rin::graphics::Dds[][src]

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

Implementations

impl Dds<Vec<u8, Global>>[src]

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

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

impl<S> Dds<S> where
    S: Borrow<[u8]>, 
[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>(&self, path: P) -> Result<(), Error> where
    P: AsRef<Path>, 
[src]

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

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [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 for Dds<S> where
    S: Clone
[src]

impl<S> CubemapImage for Dds<S> where
    S: Borrow<[u8]>, 
[src]

impl<S> Image for Dds<S> where
    S: Borrow<[u8]>, 
[src]

type DataType = u8

impl Image for Dds<Vec<u8, Global>>[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> Any for T where
    T: Any
[src]

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

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

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

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

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

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]