Skip to main content

RafxFormat

Enum RafxFormat 

Source
pub enum RafxFormat {
Show 185 variants UNDEFINED, R4G4_UNORM_PACK8, R4G4B4A4_UNORM_PACK16, B4G4R4A4_UNORM_PACK16, R5G6B5_UNORM_PACK16, B5G6R5_UNORM_PACK16, R5G5B5A1_UNORM_PACK16, B5G5R5A1_UNORM_PACK16, A1R5G5B5_UNORM_PACK16, R8_UNORM, R8_SNORM, R8_USCALED, R8_SSCALED, R8_UINT, R8_SINT, R8_SRGB, R8G8_UNORM, R8G8_SNORM, R8G8_USCALED, R8G8_SSCALED, R8G8_UINT, R8G8_SINT, R8G8_SRGB, R8G8B8_UNORM, R8G8B8_SNORM, R8G8B8_USCALED, R8G8B8_SSCALED, R8G8B8_UINT, R8G8B8_SINT, R8G8B8_SRGB, B8G8R8_UNORM, B8G8R8_SNORM, B8G8R8_USCALED, B8G8R8_SSCALED, B8G8R8_UINT, B8G8R8_SINT, B8G8R8_SRGB, R8G8B8A8_UNORM, R8G8B8A8_SNORM, R8G8B8A8_USCALED, R8G8B8A8_SSCALED, R8G8B8A8_UINT, R8G8B8A8_SINT, R8G8B8A8_SRGB, B8G8R8A8_UNORM, B8G8R8A8_SNORM, B8G8R8A8_USCALED, B8G8R8A8_SSCALED, B8G8R8A8_UINT, B8G8R8A8_SINT, B8G8R8A8_SRGB, A8B8G8R8_UNORM_PACK32, A8B8G8R8_SNORM_PACK32, A8B8G8R8_USCALED_PACK32, A8B8G8R8_SSCALED_PACK32, A8B8G8R8_UINT_PACK32, A8B8G8R8_SINT_PACK32, A8B8G8R8_SRGB_PACK32, A2R10G10B10_UNORM_PACK32, A2R10G10B10_SNORM_PACK32, A2R10G10B10_USCALED_PACK32, A2R10G10B10_SSCALED_PACK32, A2R10G10B10_UINT_PACK32, A2R10G10B10_SINT_PACK32, A2B10G10R10_UNORM_PACK32, A2B10G10R10_SNORM_PACK32, A2B10G10R10_USCALED_PACK32, A2B10G10R10_SSCALED_PACK32, A2B10G10R10_UINT_PACK32, A2B10G10R10_SINT_PACK32, R16_UNORM, R16_SNORM, R16_USCALED, R16_SSCALED, R16_UINT, R16_SINT, R16_SFLOAT, R16G16_UNORM, R16G16_SNORM, R16G16_USCALED, R16G16_SSCALED, R16G16_UINT, R16G16_SINT, R16G16_SFLOAT, R16G16B16_UNORM, R16G16B16_SNORM, R16G16B16_USCALED, R16G16B16_SSCALED, R16G16B16_UINT, R16G16B16_SINT, R16G16B16_SFLOAT, R16G16B16A16_UNORM, R16G16B16A16_SNORM, R16G16B16A16_USCALED, R16G16B16A16_SSCALED, R16G16B16A16_UINT, R16G16B16A16_SINT, R16G16B16A16_SFLOAT, R32_UINT, R32_SINT, R32_SFLOAT, R32G32_UINT, R32G32_SINT, R32G32_SFLOAT, R32G32B32_UINT, R32G32B32_SINT, R32G32B32_SFLOAT, R32G32B32A32_UINT, R32G32B32A32_SINT, R32G32B32A32_SFLOAT, R64_UINT, R64_SINT, R64_SFLOAT, R64G64_UINT, R64G64_SINT, R64G64_SFLOAT, R64G64B64_UINT, R64G64B64_SINT, R64G64B64_SFLOAT, R64G64B64A64_UINT, R64G64B64A64_SINT, R64G64B64A64_SFLOAT, B10G11R11_UFLOAT_PACK32, E5B9G9R9_UFLOAT_PACK32, D16_UNORM, X8_D24_UNORM_PACK32, D32_SFLOAT, S8_UINT, D16_UNORM_S8_UINT, D24_UNORM_S8_UINT, D32_SFLOAT_S8_UINT, BC1_RGB_UNORM_BLOCK, BC1_RGB_SRGB_BLOCK, BC1_RGBA_UNORM_BLOCK, BC1_RGBA_SRGB_BLOCK, BC2_UNORM_BLOCK, BC2_SRGB_BLOCK, BC3_UNORM_BLOCK, BC3_SRGB_BLOCK, BC4_UNORM_BLOCK, BC4_SNORM_BLOCK, BC5_UNORM_BLOCK, BC5_SNORM_BLOCK, BC6H_UFLOAT_BLOCK, BC6H_SFLOAT_BLOCK, BC7_UNORM_BLOCK, BC7_SRGB_BLOCK, ETC2_R8G8B8_UNORM_BLOCK, ETC2_R8G8B8_SRGB_BLOCK, ETC2_R8G8B8A1_UNORM_BLOCK, ETC2_R8G8B8A1_SRGB_BLOCK, ETC2_R8G8B8A8_UNORM_BLOCK, ETC2_R8G8B8A8_SRGB_BLOCK, EAC_R11_UNORM_BLOCK, EAC_R11_SNORM_BLOCK, EAC_R11G11_UNORM_BLOCK, EAC_R11G11_SNORM_BLOCK, ASTC_4X4_UNORM_BLOCK, ASTC_4X4_SRGB_BLOCK, ASTC_5X4_UNORM_BLOCK, ASTC_5X4_SRGB_BLOCK, ASTC_5X5_UNORM_BLOCK, ASTC_5X5_SRGB_BLOCK, ASTC_6X5_UNORM_BLOCK, ASTC_6X5_SRGB_BLOCK, ASTC_6X6_UNORM_BLOCK, ASTC_6X6_SRGB_BLOCK, ASTC_8X5_UNORM_BLOCK, ASTC_8X5_SRGB_BLOCK, ASTC_8X6_UNORM_BLOCK, ASTC_8X6_SRGB_BLOCK, ASTC_8X8_UNORM_BLOCK, ASTC_8X8_SRGB_BLOCK, ASTC_10X5_UNORM_BLOCK, ASTC_10X5_SRGB_BLOCK, ASTC_10X6_UNORM_BLOCK, ASTC_10X6_SRGB_BLOCK, ASTC_10X8_UNORM_BLOCK, ASTC_10X8_SRGB_BLOCK, ASTC_10X10_UNORM_BLOCK, ASTC_10X10_SRGB_BLOCK, ASTC_12X10_UNORM_BLOCK, ASTC_12X10_SRGB_BLOCK, ASTC_12X12_UNORM_BLOCK, ASTC_12X12_SRGB_BLOCK,
}
Expand description

Describes the encoding of an image or buffer.

Variants§

§

UNDEFINED

§

R4G4_UNORM_PACK8

§

R4G4B4A4_UNORM_PACK16

§

B4G4R4A4_UNORM_PACK16

§

R5G6B5_UNORM_PACK16

§

B5G6R5_UNORM_PACK16

§

R5G5B5A1_UNORM_PACK16

§

B5G5R5A1_UNORM_PACK16

§

A1R5G5B5_UNORM_PACK16

§

R8_UNORM

§

R8_SNORM

§

R8_USCALED

§

R8_SSCALED

§

R8_UINT

§

R8_SINT

§

R8_SRGB

§

R8G8_UNORM

§

R8G8_SNORM

§

R8G8_USCALED

§

R8G8_SSCALED

§

R8G8_UINT

§

R8G8_SINT

§

R8G8_SRGB

§

R8G8B8_UNORM

§

R8G8B8_SNORM

§

R8G8B8_USCALED

§

R8G8B8_SSCALED

§

R8G8B8_UINT

§

R8G8B8_SINT

§

R8G8B8_SRGB

§

B8G8R8_UNORM

§

B8G8R8_SNORM

§

B8G8R8_USCALED

§

B8G8R8_SSCALED

§

B8G8R8_UINT

§

B8G8R8_SINT

§

B8G8R8_SRGB

§

R8G8B8A8_UNORM

§

R8G8B8A8_SNORM

§

R8G8B8A8_USCALED

§

R8G8B8A8_SSCALED

§

R8G8B8A8_UINT

§

R8G8B8A8_SINT

§

R8G8B8A8_SRGB

§

B8G8R8A8_UNORM

§

B8G8R8A8_SNORM

§

B8G8R8A8_USCALED

§

B8G8R8A8_SSCALED

§

B8G8R8A8_UINT

§

B8G8R8A8_SINT

§

B8G8R8A8_SRGB

§

A8B8G8R8_UNORM_PACK32

§

A8B8G8R8_SNORM_PACK32

§

A8B8G8R8_USCALED_PACK32

§

A8B8G8R8_SSCALED_PACK32

§

A8B8G8R8_UINT_PACK32

§

A8B8G8R8_SINT_PACK32

§

A8B8G8R8_SRGB_PACK32

§

A2R10G10B10_UNORM_PACK32

§

A2R10G10B10_SNORM_PACK32

§

A2R10G10B10_USCALED_PACK32

§

A2R10G10B10_SSCALED_PACK32

§

A2R10G10B10_UINT_PACK32

§

A2R10G10B10_SINT_PACK32

§

A2B10G10R10_UNORM_PACK32

§

A2B10G10R10_SNORM_PACK32

§

A2B10G10R10_USCALED_PACK32

§

A2B10G10R10_SSCALED_PACK32

§

A2B10G10R10_UINT_PACK32

§

A2B10G10R10_SINT_PACK32

§

R16_UNORM

§

R16_SNORM

§

R16_USCALED

§

R16_SSCALED

§

R16_UINT

§

R16_SINT

§

R16_SFLOAT

§

R16G16_UNORM

§

R16G16_SNORM

§

R16G16_USCALED

§

R16G16_SSCALED

§

R16G16_UINT

§

R16G16_SINT

§

R16G16_SFLOAT

§

R16G16B16_UNORM

§

R16G16B16_SNORM

§

R16G16B16_USCALED

§

R16G16B16_SSCALED

§

R16G16B16_UINT

§

R16G16B16_SINT

§

R16G16B16_SFLOAT

§

R16G16B16A16_UNORM

§

R16G16B16A16_SNORM

§

R16G16B16A16_USCALED

§

R16G16B16A16_SSCALED

§

R16G16B16A16_UINT

§

R16G16B16A16_SINT

§

R16G16B16A16_SFLOAT

§

R32_UINT

§

R32_SINT

§

R32_SFLOAT

§

R32G32_UINT

§

R32G32_SINT

§

R32G32_SFLOAT

§

R32G32B32_UINT

§

R32G32B32_SINT

§

R32G32B32_SFLOAT

§

R32G32B32A32_UINT

§

R32G32B32A32_SINT

§

R32G32B32A32_SFLOAT

§

R64_UINT

§

R64_SINT

§

R64_SFLOAT

§

R64G64_UINT

§

R64G64_SINT

§

R64G64_SFLOAT

§

R64G64B64_UINT

§

R64G64B64_SINT

§

R64G64B64_SFLOAT

§

R64G64B64A64_UINT

§

R64G64B64A64_SINT

§

R64G64B64A64_SFLOAT

§

B10G11R11_UFLOAT_PACK32

§

E5B9G9R9_UFLOAT_PACK32

§

D16_UNORM

§

X8_D24_UNORM_PACK32

§

D32_SFLOAT

§

S8_UINT

§

D16_UNORM_S8_UINT

§

D24_UNORM_S8_UINT

§

D32_SFLOAT_S8_UINT

§

BC1_RGB_UNORM_BLOCK

§

BC1_RGB_SRGB_BLOCK

§

BC1_RGBA_UNORM_BLOCK

§

BC1_RGBA_SRGB_BLOCK

§

BC2_UNORM_BLOCK

§

BC2_SRGB_BLOCK

§

BC3_UNORM_BLOCK

§

BC3_SRGB_BLOCK

§

BC4_UNORM_BLOCK

§

BC4_SNORM_BLOCK

§

BC5_UNORM_BLOCK

§

BC5_SNORM_BLOCK

§

BC6H_UFLOAT_BLOCK

§

BC6H_SFLOAT_BLOCK

§

BC7_UNORM_BLOCK

§

BC7_SRGB_BLOCK

§

ETC2_R8G8B8_UNORM_BLOCK

§

ETC2_R8G8B8_SRGB_BLOCK

§

ETC2_R8G8B8A1_UNORM_BLOCK

§

ETC2_R8G8B8A1_SRGB_BLOCK

§

ETC2_R8G8B8A8_UNORM_BLOCK

§

ETC2_R8G8B8A8_SRGB_BLOCK

§

EAC_R11_UNORM_BLOCK

§

EAC_R11_SNORM_BLOCK

§

EAC_R11G11_UNORM_BLOCK

§

EAC_R11G11_SNORM_BLOCK

§

ASTC_4X4_UNORM_BLOCK

§

ASTC_4X4_SRGB_BLOCK

§

ASTC_5X4_UNORM_BLOCK

§

ASTC_5X4_SRGB_BLOCK

§

ASTC_5X5_UNORM_BLOCK

§

ASTC_5X5_SRGB_BLOCK

§

ASTC_6X5_UNORM_BLOCK

§

ASTC_6X5_SRGB_BLOCK

§

ASTC_6X6_UNORM_BLOCK

§

ASTC_6X6_SRGB_BLOCK

§

ASTC_8X5_UNORM_BLOCK

§

ASTC_8X5_SRGB_BLOCK

§

ASTC_8X6_UNORM_BLOCK

§

ASTC_8X6_SRGB_BLOCK

§

ASTC_8X8_UNORM_BLOCK

§

ASTC_8X8_SRGB_BLOCK

§

ASTC_10X5_UNORM_BLOCK

§

ASTC_10X5_SRGB_BLOCK

§

ASTC_10X6_UNORM_BLOCK

§

ASTC_10X6_SRGB_BLOCK

§

ASTC_10X8_UNORM_BLOCK

§

ASTC_10X8_SRGB_BLOCK

§

ASTC_10X10_UNORM_BLOCK

§

ASTC_10X10_SRGB_BLOCK

§

ASTC_12X10_UNORM_BLOCK

§

ASTC_12X10_SRGB_BLOCK

§

ASTC_12X12_UNORM_BLOCK

§

ASTC_12X12_SRGB_BLOCK

Implementations§

Trait Implementations§

Source§

impl Clone for RafxFormat

Source§

fn clone(&self) -> RafxFormat

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for RafxFormat

Source§

impl Debug for RafxFormat

Source§

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

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

impl Default for RafxFormat

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for RafxFormat

Source§

impl Hash for RafxFormat

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for RafxFormat

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 RafxFormat

Auto Trait Implementations§

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> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
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> Resource for T
where T: Downcast + Send + Sync,

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.