Struct dds::Dds [−][src]
Implementations
impl Dds
[src]
impl Dds
[src]impl<S: Borrow<[u8]>> Dds<S>
[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]
&self,
level: usize,
face: usize
) -> Result<Dds<&[u8]>, Error>
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]
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
Auto Trait Implementations
impl<S> RefUnwindSafe for Dds<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for Dds<S> where
S: Send,
S: Send,
impl<S> Sync for Dds<S> where
S: Sync,
S: Sync,
impl<S> Unpin for Dds<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for Dds<S> where
S: UnwindSafe,
S: UnwindSafe,