Struct rin::graphics::Dds [−][src]
Implementations
impl Dds<Vec<u8, Global>>
[src]
impl Dds<Vec<u8, Global>>
[src]impl<S> Dds<S> where
S: Borrow<[u8]>,
[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]
&self,
level: usize,
face: usize
) -> Result<Dds<&[u8]>, Error>
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]
P: AsRef<Path>,
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
impl<S> Image for Dds<S> where
S: Borrow<[u8]>,
[src]
impl<S> Image for Dds<S> where
S: Borrow<[u8]>,
[src]type DataType = u8
pub fn gl_internal_format_type(&self) -> Option<(u32, u32, u32)>
[src]
pub fn num_components(&self) -> usize
[src]
pub fn width(&self, level: usize) -> usize
[src]
pub fn height(&self, level: usize) -> usize
[src]
pub fn pitch_bytes(&self, level: usize) -> usize
[src]
pub fn bytes_per_pixel(&self) -> usize
[src]
pub fn pitch_components(&self, level: usize) -> usize
[src]
pub fn data(&self) -> &[u8]ⓘ
[src]
pub fn levels(&self) -> usize
[src]
pub fn mipmap(&self, level: usize) -> Option<&[u8]>
[src]
pub fn is_gpu_compressed(&self) -> bool
[src]
pub fn gl_internal(&self) -> Option<u32>
[src]
pub fn gl_format(&self) -> Option<u32>
[src]
pub fn gl_type(&self) -> Option<u32>
[src]
pub fn max_levels(&self) -> usize
[src]
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,
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]