Struct ddsfile::FourCC

source ·
pub struct FourCC(pub u32);

Tuple Fields§

§0: u32

Implementations§

source§

impl FourCC

source

pub const NONE: u32 = 0u32

source

pub const DXT1: u32 = 827_611_204u32

source

pub const DXT2: u32 = 844_388_420u32

source

pub const DXT3: u32 = 861_165_636u32

source

pub const DXT4: u32 = 877_942_852u32

source

pub const DXT5: u32 = 894_720_068u32

source

pub const R8G8_B8G8: u32 = 1_195_525_970u32

source

pub const G8R8_G8B8: u32 = 1_111_970_375u32

source

pub const A16B16G16R16: u32 = 36u32

source

pub const Q16W16V16U16: u32 = 110u32

source

pub const R16F: u32 = 111u32

source

pub const G16R16F: u32 = 112u32

source

pub const A16B16G16R16F: u32 = 113u32

source

pub const R32F: u32 = 114u32

source

pub const G32R32F: u32 = 115u32

source

pub const A32B32G32R32F: u32 = 116u32

source

pub const UYVY: u32 = 1_498_831_189u32

source

pub const YUY2: u32 = 844_715_353u32

source

pub const CXV8U8: u32 = 117u32

source

pub const ATI1: u32 = 826_889_281u32

source

pub const ATI2: u32 = 843_666_497u32

source

pub const DX10: u32 = 808_540_228u32

source

pub const BC1_UNORM: u32 = 827_611_204u32

source

pub const BC2_UNORM: u32 = 861_165_636u32

source

pub const BC3_UNORM: u32 = 894_720_068u32

source

pub const BC4_UNORM: u32 = 1_429_488_450u32

source

pub const BC4_SNORM: u32 = 1_395_934_018u32

source

pub const BC5_UNORM: u32 = 843_666_497u32

source

pub const BC5_SNORM: u32 = 1_395_999_554u32

source

pub const R8G8_B8G8_UNORM: u32 = 1_195_525_970u32

source

pub const G8R8_G8B8_UNORM: u32 = 1_111_970_375u32

source

pub const R16G16B16A16_UNORM: u32 = 36u32

source

pub const R16G16B16A16_SNORM: u32 = 110u32

source

pub const R16_FLOAT: u32 = 111u32

source

pub const R16G16_FLOAT: u32 = 112u32

source

pub const R16G16B16A16_FLOAT: u32 = 113u32

source

pub const R32_FLOAT: u32 = 114u32

source

pub const R32G32_FLOAT: u32 = 115u32

source

pub const R32G32B32A32_FLOAT: u32 = 116u32

Trait Implementations§

source§

impl Clone for FourCC

source§

fn clone(&self) -> FourCC

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for FourCC

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for FourCC

source§

fn eq(&self, other: &FourCC) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for FourCC

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.