[−][src]Enum ddsfile::D3DFormat
Variants
Methods
impl D3DFormat
[src]
pub fn r_bit_mask(&self) -> Option<u32>
[src]
This gets the bitmask for the red channel pixels
pub fn g_bit_mask(&self) -> Option<u32>
[src]
This gets the bitmask for the green channel pixels
pub fn b_bit_mask(&self) -> Option<u32>
[src]
This gets the bitmask for the blue channel pixels
pub fn a_bit_mask(&self) -> Option<u32>
[src]
This gets the bitmask for the alpha channel pixels
pub fn try_from_pixel_format(pixel_format: &PixelFormat) -> Option<D3DFormat>
[src]
This attempts to use PixelFormat
data (e.g. from the dds.header.spf field)
to determine the D3DFormat
.
Trait Implementations
impl DataFormat for D3DFormat
[src]
fn get_pitch(&self, width: u32) -> Option<u32>
[src]
fn get_bits_per_pixel(&self) -> Option<u8>
[src]
fn get_block_size(&self) -> Option<u32>
[src]
fn get_fourcc(&self) -> Option<FourCC>
[src]
fn requires_extension(&self) -> bool
[src]
fn get_pitch_height(&self) -> u32
[src]
fn get_minimum_mipmap_size_in_bytes(&self) -> Option<u32>
[src]
impl From<D3DFormat> for PixelFormat
[src]
fn from(format: D3DFormat) -> PixelFormat
[src]
impl Clone for D3DFormat
[src]
impl Copy for D3DFormat
[src]
impl Eq for D3DFormat
[src]
impl PartialEq<D3DFormat> for D3DFormat
[src]
impl Debug for D3DFormat
[src]
impl Hash for D3DFormat
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl StructuralPartialEq for D3DFormat
[src]
impl StructuralEq for D3DFormat
[src]
Auto Trait Implementations
impl Send for D3DFormat
impl Sync for D3DFormat
impl Unpin for D3DFormat
impl UnwindSafe for D3DFormat
impl RefUnwindSafe for D3DFormat
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,