Enum WGPUTextureFormat

Source
#[repr(u32)]
pub enum WGPUTextureFormat {
Show 96 variants Undefined = 0, R8Unorm = 1, R8Snorm = 2, R8Uint = 3, R8Sint = 4, R16Uint = 5, R16Sint = 6, R16Float = 7, RG8Unorm = 8, RG8Snorm = 9, RG8Uint = 10, RG8Sint = 11, R32Float = 12, R32Uint = 13, R32Sint = 14, RG16Uint = 15, RG16Sint = 16, RG16Float = 17, RGBA8Unorm = 18, RGBA8UnormSrgb = 19, RGBA8Snorm = 20, RGBA8Uint = 21, RGBA8Sint = 22, BGRA8Unorm = 23, BGRA8UnormSrgb = 24, RGB10A2Uint = 25, RGB10A2Unorm = 26, RG11B10Ufloat = 27, RGB9E5Ufloat = 28, RG32Float = 29, RG32Uint = 30, RG32Sint = 31, RGBA16Uint = 32, RGBA16Sint = 33, RGBA16Float = 34, RGBA32Float = 35, RGBA32Uint = 36, RGBA32Sint = 37, Stencil8 = 38, Depth16Unorm = 39, Depth24Plus = 40, Depth24PlusStencil8 = 41, Depth32Float = 42, Depth32FloatStencil8 = 43, BC1RGBAUnorm = 44, BC1RGBAUnormSrgb = 45, BC2RGBAUnorm = 46, BC2RGBAUnormSrgb = 47, BC3RGBAUnorm = 48, BC3RGBAUnormSrgb = 49, BC4RUnorm = 50, BC4RSnorm = 51, BC5RGUnorm = 52, BC5RGSnorm = 53, BC6HRGBUfloat = 54, BC6HRGBFloat = 55, BC7RGBAUnorm = 56, BC7RGBAUnormSrgb = 57, ETC2RGB8Unorm = 58, ETC2RGB8UnormSrgb = 59, ETC2RGB8A1Unorm = 60, ETC2RGB8A1UnormSrgb = 61, ETC2RGBA8Unorm = 62, ETC2RGBA8UnormSrgb = 63, EACR11Unorm = 64, EACR11Snorm = 65, EACRG11Unorm = 66, EACRG11Snorm = 67, ASTC4x4Unorm = 68, ASTC4x4UnormSrgb = 69, ASTC5x4Unorm = 70, ASTC5x4UnormSrgb = 71, ASTC5x5Unorm = 72, ASTC5x5UnormSrgb = 73, ASTC6x5Unorm = 74, ASTC6x5UnormSrgb = 75, ASTC6x6Unorm = 76, ASTC6x6UnormSrgb = 77, ASTC8x5Unorm = 78, ASTC8x5UnormSrgb = 79, ASTC8x6Unorm = 80, ASTC8x6UnormSrgb = 81, ASTC8x8Unorm = 82, ASTC8x8UnormSrgb = 83, ASTC10x5Unorm = 84, ASTC10x5UnormSrgb = 85, ASTC10x6Unorm = 86, ASTC10x6UnormSrgb = 87, ASTC10x8Unorm = 88, ASTC10x8UnormSrgb = 89, ASTC10x10Unorm = 90, ASTC10x10UnormSrgb = 91, ASTC12x10Unorm = 92, ASTC12x10UnormSrgb = 93, ASTC12x12Unorm = 94, ASTC12x12UnormSrgb = 95,
}

Variants§

§

Undefined = 0

§

R8Unorm = 1

§

R8Snorm = 2

§

R8Uint = 3

§

R8Sint = 4

§

R16Uint = 5

§

R16Sint = 6

§

R16Float = 7

§

RG8Unorm = 8

§

RG8Snorm = 9

§

RG8Uint = 10

§

RG8Sint = 11

§

R32Float = 12

§

R32Uint = 13

§

R32Sint = 14

§

RG16Uint = 15

§

RG16Sint = 16

§

RG16Float = 17

§

RGBA8Unorm = 18

§

RGBA8UnormSrgb = 19

§

RGBA8Snorm = 20

§

RGBA8Uint = 21

§

RGBA8Sint = 22

§

BGRA8Unorm = 23

§

BGRA8UnormSrgb = 24

§

RGB10A2Uint = 25

§

RGB10A2Unorm = 26

§

RG11B10Ufloat = 27

§

RGB9E5Ufloat = 28

§

RG32Float = 29

§

RG32Uint = 30

§

RG32Sint = 31

§

RGBA16Uint = 32

§

RGBA16Sint = 33

§

RGBA16Float = 34

§

RGBA32Float = 35

§

RGBA32Uint = 36

§

RGBA32Sint = 37

§

Stencil8 = 38

§

Depth16Unorm = 39

§

Depth24Plus = 40

§

Depth24PlusStencil8 = 41

§

Depth32Float = 42

§

Depth32FloatStencil8 = 43

§

BC1RGBAUnorm = 44

§

BC1RGBAUnormSrgb = 45

§

BC2RGBAUnorm = 46

§

BC2RGBAUnormSrgb = 47

§

BC3RGBAUnorm = 48

§

BC3RGBAUnormSrgb = 49

§

BC4RUnorm = 50

§

BC4RSnorm = 51

§

BC5RGUnorm = 52

§

BC5RGSnorm = 53

§

BC6HRGBUfloat = 54

§

BC6HRGBFloat = 55

§

BC7RGBAUnorm = 56

§

BC7RGBAUnormSrgb = 57

§

ETC2RGB8Unorm = 58

§

ETC2RGB8UnormSrgb = 59

§

ETC2RGB8A1Unorm = 60

§

ETC2RGB8A1UnormSrgb = 61

§

ETC2RGBA8Unorm = 62

§

ETC2RGBA8UnormSrgb = 63

§

EACR11Unorm = 64

§

EACR11Snorm = 65

§

EACRG11Unorm = 66

§

EACRG11Snorm = 67

§

ASTC4x4Unorm = 68

§

ASTC4x4UnormSrgb = 69

§

ASTC5x4Unorm = 70

§

ASTC5x4UnormSrgb = 71

§

ASTC5x5Unorm = 72

§

ASTC5x5UnormSrgb = 73

§

ASTC6x5Unorm = 74

§

ASTC6x5UnormSrgb = 75

§

ASTC6x6Unorm = 76

§

ASTC6x6UnormSrgb = 77

§

ASTC8x5Unorm = 78

§

ASTC8x5UnormSrgb = 79

§

ASTC8x6Unorm = 80

§

ASTC8x6UnormSrgb = 81

§

ASTC8x8Unorm = 82

§

ASTC8x8UnormSrgb = 83

§

ASTC10x5Unorm = 84

§

ASTC10x5UnormSrgb = 85

§

ASTC10x6Unorm = 86

§

ASTC10x6UnormSrgb = 87

§

ASTC10x8Unorm = 88

§

ASTC10x8UnormSrgb = 89

§

ASTC10x10Unorm = 90

§

ASTC10x10UnormSrgb = 91

§

ASTC12x10Unorm = 92

§

ASTC12x10UnormSrgb = 93

§

ASTC12x12Unorm = 94

§

ASTC12x12UnormSrgb = 95

Implementations§

Source§

impl WGPUTextureFormat

Source

pub const fn from_repr(discriminant: u32) -> Option<WGPUTextureFormat>

Try to create Self from the raw representation

Source§

impl WGPUTextureFormat

Source

pub fn to_str(self) -> &'static str

Trait Implementations§

Source§

impl Clone for WGPUTextureFormat

Source§

fn clone(&self) -> WGPUTextureFormat

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 WGPUTextureFormat

Source§

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

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

impl Display for WGPUTextureFormat

Source§

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

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

impl<'_derivative_strum> From<&'_derivative_strum WGPUTextureFormat> for &'static str

Source§

fn from(x: &'_derivative_strum WGPUTextureFormat) -> &'static str

Converts to this type from the input type.
Source§

impl From<WGPUTextureFormat> for &'static str

Source§

fn from(x: WGPUTextureFormat) -> &'static str

Converts to this type from the input type.
Source§

impl FromStr for WGPUTextureFormat

Source§

type Err = ParseError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<WGPUTextureFormat, <Self as FromStr>::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for WGPUTextureFormat

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 WGPUTextureFormat

Source§

fn eq(&self, other: &WGPUTextureFormat) -> 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 TryFrom<&str> for WGPUTextureFormat

Source§

type Error = ParseError

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

fn try_from( s: &str, ) -> Result<WGPUTextureFormat, <Self as TryFrom<&str>>::Error>

Performs the conversion.
Source§

impl Copy for WGPUTextureFormat

Source§

impl Eq for WGPUTextureFormat

Source§

impl StructuralPartialEq for WGPUTextureFormat

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.