pub enum Dx9PixelFormat {
FourCC(FourCC),
Mask(MaskPixelFormat),
}Expand description
DX9 pixel format.
DDS files define their pixel format either with a (legacy) DDS_PIXELFORMAT
structure or with a DXGI_FORMAT from the Direct3D 10 and later APIs. This
enum represents all cases in a single type.
https://learn.microsoft.com/en-us/windows/win32/direct3ddds/dds-pixelformat
Variants§
FourCC(FourCC)
Mask(MaskPixelFormat)
Trait Implementations§
Source§impl Clone for Dx9PixelFormat
impl Clone for Dx9PixelFormat
Source§fn clone(&self) -> Dx9PixelFormat
fn clone(&self) -> Dx9PixelFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Dx9PixelFormat
impl Debug for Dx9PixelFormat
Source§impl From<FourCC> for Dx9PixelFormat
impl From<FourCC> for Dx9PixelFormat
Source§impl From<MaskPixelFormat> for Dx9PixelFormat
impl From<MaskPixelFormat> for Dx9PixelFormat
Source§fn from(mask: MaskPixelFormat) -> Self
fn from(mask: MaskPixelFormat) -> Self
Converts to this type from the input type.
Source§impl Hash for Dx9PixelFormat
impl Hash for Dx9PixelFormat
Source§impl PartialEq for Dx9PixelFormat
impl PartialEq for Dx9PixelFormat
Source§impl TryFrom<Format> for Dx9PixelFormat
impl TryFrom<Format> for Dx9PixelFormat
impl Eq for Dx9PixelFormat
impl StructuralPartialEq for Dx9PixelFormat
Auto Trait Implementations§
impl Freeze for Dx9PixelFormat
impl RefUnwindSafe for Dx9PixelFormat
impl Send for Dx9PixelFormat
impl Sync for Dx9PixelFormat
impl Unpin for Dx9PixelFormat
impl UnwindSafe for Dx9PixelFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more