Skip to main content

TextureFormat

Enum TextureFormat 

Source
pub enum TextureFormat {
Show 110 variants Undefined, R8Unorm, R8Snorm, R8Uint, R8Sint, R16Unorm, R16Snorm, R16Uint, R16Sint, R16Float, Rg8Unorm, Rg8Snorm, Rg8Uint, Rg8Sint, R32Float, R32Uint, R32Sint, Rg16Unorm, Rg16Snorm, Rg16Uint, Rg16Sint, Rg16Float, Rgba8Unorm, Rgba8UnormSrgb, Rgba8Snorm, Rgba8Uint, Rgba8Sint, Bgra8Unorm, Bgra8UnormSrgb, Rgb10A2Uint, Rgb10A2Unorm, Rg11B10Ufloat, Rgb9E5Ufloat, Rg32Float, Rg32Uint, Rg32Sint, Rgba16Unorm, Rgba16Snorm, Rgba16Uint, Rgba16Sint, Rgba16Float, Rgba32Float, Rgba32Uint, Rgba32Sint, Stencil8, Depth16Unorm, Depth24Plus, Depth24PlusStencil8, Depth32Float, Depth32FloatStencil8, Bc1RgbaUnorm, Bc1RgbaUnormSrgb, Bc2RgbaUnorm, Bc2RgbaUnormSrgb, Bc3RgbaUnorm, Bc3RgbaUnormSrgb, Bc4RUnorm, Bc4RSnorm, Bc5RgUnorm, Bc5RgSnorm, Bc6HRgbUfloat, Bc6HRgbFloat, Bc7RgbaUnorm, Bc7RgbaUnormSrgb, Etc2Rgb8Unorm, Etc2Rgb8UnormSrgb, Etc2Rgb8A1Unorm, Etc2Rgb8A1UnormSrgb, Etc2Rgba8Unorm, Etc2Rgba8UnormSrgb, EacR11Unorm, EacR11Snorm, EacRg11Unorm, EacRg11Snorm, Astc4X4Unorm, Astc4X4UnormSrgb, Astc5X4Unorm, Astc5X4UnormSrgb, Astc5X5Unorm, Astc5X5UnormSrgb, Astc6X5Unorm, Astc6X5UnormSrgb, Astc6X6Unorm, Astc6X6UnormSrgb, Astc8X5Unorm, Astc8X5UnormSrgb, Astc8X6Unorm, Astc8X6UnormSrgb, Astc8X8Unorm, Astc8X8UnormSrgb, Astc10X5Unorm, Astc10X5UnormSrgb, Astc10X6Unorm, Astc10X6UnormSrgb, Astc10X8Unorm, Astc10X8UnormSrgb, Astc10X10Unorm, Astc10X10UnormSrgb, Astc12X10Unorm, Astc12X10UnormSrgb, Astc12X12Unorm, Astc12X12UnormSrgb, R8Bg8Biplanar420Unorm, R10X6Bg10X6Biplanar420Unorm, R8Bg8A8Triplanar420Unorm, R8Bg8Biplanar422Unorm, R8Bg8Biplanar444Unorm, R10X6Bg10X6Biplanar422Unorm, R10X6Bg10X6Biplanar444Unorm, OpaqueYCbCrAndroid,
}

Variants§

§

Undefined

§

R8Unorm

§

R8Snorm

§

R8Uint

§

R8Sint

§

R16Unorm

§

R16Snorm

§

R16Uint

§

R16Sint

§

R16Float

§

Rg8Unorm

§

Rg8Snorm

§

Rg8Uint

§

Rg8Sint

§

R32Float

§

R32Uint

§

R32Sint

§

Rg16Unorm

§

Rg16Snorm

§

Rg16Uint

§

Rg16Sint

§

Rg16Float

§

Rgba8Unorm

§

Rgba8UnormSrgb

§

Rgba8Snorm

§

Rgba8Uint

§

Rgba8Sint

§

Bgra8Unorm

§

Bgra8UnormSrgb

§

Rgb10A2Uint

§

Rgb10A2Unorm

§

Rg11B10Ufloat

§

Rgb9E5Ufloat

§

Rg32Float

§

Rg32Uint

§

Rg32Sint

§

Rgba16Unorm

§

Rgba16Snorm

§

Rgba16Uint

§

Rgba16Sint

§

Rgba16Float

§

Rgba32Float

§

Rgba32Uint

§

Rgba32Sint

§

Stencil8

§

Depth16Unorm

§

Depth24Plus

§

Depth24PlusStencil8

§

Depth32Float

§

Depth32FloatStencil8

§

Bc1RgbaUnorm

§

Bc1RgbaUnormSrgb

§

Bc2RgbaUnorm

§

Bc2RgbaUnormSrgb

§

Bc3RgbaUnorm

§

Bc3RgbaUnormSrgb

§

Bc4RUnorm

§

Bc4RSnorm

§

Bc5RgUnorm

§

Bc5RgSnorm

§

Bc6HRgbUfloat

§

Bc6HRgbFloat

§

Bc7RgbaUnorm

§

Bc7RgbaUnormSrgb

§

Etc2Rgb8Unorm

§

Etc2Rgb8UnormSrgb

§

Etc2Rgb8A1Unorm

§

Etc2Rgb8A1UnormSrgb

§

Etc2Rgba8Unorm

§

Etc2Rgba8UnormSrgb

§

EacR11Unorm

§

EacR11Snorm

§

EacRg11Unorm

§

EacRg11Snorm

§

Astc4X4Unorm

§

Astc4X4UnormSrgb

§

Astc5X4Unorm

§

Astc5X4UnormSrgb

§

Astc5X5Unorm

§

Astc5X5UnormSrgb

§

Astc6X5Unorm

§

Astc6X5UnormSrgb

§

Astc6X6Unorm

§

Astc6X6UnormSrgb

§

Astc8X5Unorm

§

Astc8X5UnormSrgb

§

Astc8X6Unorm

§

Astc8X6UnormSrgb

§

Astc8X8Unorm

§

Astc8X8UnormSrgb

§

Astc10X5Unorm

§

Astc10X5UnormSrgb

§

Astc10X6Unorm

§

Astc10X6UnormSrgb

§

Astc10X8Unorm

§

Astc10X8UnormSrgb

§

Astc10X10Unorm

§

Astc10X10UnormSrgb

§

Astc12X10Unorm

§

Astc12X10UnormSrgb

§

Astc12X12Unorm

§

Astc12X12UnormSrgb

§

R8Bg8Biplanar420Unorm

§

R10X6Bg10X6Biplanar420Unorm

§

R8Bg8A8Triplanar420Unorm

§

R8Bg8Biplanar422Unorm

§

R8Bg8Biplanar444Unorm

§

R10X6Bg10X6Biplanar422Unorm

§

R10X6Bg10X6Biplanar444Unorm

§

OpaqueYCbCrAndroid

Trait Implementations§

Source§

impl Clone for TextureFormat

Source§

fn clone(&self) -> TextureFormat

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 TextureFormat

Source§

impl Debug for TextureFormat

Source§

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

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

impl Eq for TextureFormat

Source§

impl From<TextureFormat> for c_uint

Source§

fn from(value: TextureFormat) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for TextureFormat

Source§

fn from(value: c_uint) -> Self

Converts to this type from the input type.
Source§

impl Hash for TextureFormat

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 TextureFormat

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for TextureFormat

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> 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 = !

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

fn try_from(value: U) -> Result<T, !>

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.