Struct 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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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§

§

impl Freeze for FourCC

§

impl RefUnwindSafe for FourCC

§

impl Send for FourCC

§

impl Sync for FourCC

§

impl Unpin for FourCC

§

impl UnwindSafe for FourCC

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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 T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.