Skip to main content

GPUTextureFormat

Enum GPUTextureFormat 

Source
#[repr(usize)]
pub enum GPUTextureFormat {
Show 101 variants R8unorm = 0, R8snorm = 1, R8uint = 2, R8sint = 3, R16unorm = 4, R16snorm = 5, R16uint = 6, R16sint = 7, R16float = 8, Rg8unorm = 9, Rg8snorm = 10, Rg8uint = 11, Rg8sint = 12, R32uint = 13, R32sint = 14, R32float = 15, Rg16unorm = 16, Rg16snorm = 17, Rg16uint = 18, Rg16sint = 19, Rg16float = 20, Rgba8unorm = 21, Rgba8unorm_srgb = 22, Rgba8snorm = 23, Rgba8uint = 24, Rgba8sint = 25, Bgra8unorm = 26, Bgra8unorm_srgb = 27, Rgb9e5ufloat = 28, Rgb10a2uint = 29, Rgb10a2unorm = 30, Rg11b10ufloat = 31, Rg32uint = 32, Rg32sint = 33, Rg32float = 34, Rgba16unorm = 35, Rgba16snorm = 36, Rgba16uint = 37, Rgba16sint = 38, Rgba16float = 39, Rgba32uint = 40, Rgba32sint = 41, Rgba32float = 42, Stencil8 = 43, Depth16unorm = 44, Depth24plus = 45, Depth24plus_stencil8 = 46, Depth32float = 47, Depth32float_stencil8 = 48, Bc1_rgba_unorm = 49, Bc1_rgba_unorm_srgb = 50, Bc2_rgba_unorm = 51, Bc2_rgba_unorm_srgb = 52, Bc3_rgba_unorm = 53, Bc3_rgba_unorm_srgb = 54, Bc4_r_unorm = 55, Bc4_r_snorm = 56, Bc5_rg_unorm = 57, Bc5_rg_snorm = 58, Bc6h_rgb_ufloat = 59, Bc6h_rgb_float = 60, Bc7_rgba_unorm = 61, Bc7_rgba_unorm_srgb = 62, Etc2_rgb8unorm = 63, Etc2_rgb8unorm_srgb = 64, Etc2_rgb8a1unorm = 65, Etc2_rgb8a1unorm_srgb = 66, Etc2_rgba8unorm = 67, Etc2_rgba8unorm_srgb = 68, Eac_r11unorm = 69, Eac_r11snorm = 70, Eac_rg11unorm = 71, Eac_rg11snorm = 72, Astc_4x4_unorm = 73, Astc_4x4_unorm_srgb = 74, Astc_5x4_unorm = 75, Astc_5x4_unorm_srgb = 76, Astc_5x5_unorm = 77, Astc_5x5_unorm_srgb = 78, Astc_6x5_unorm = 79, Astc_6x5_unorm_srgb = 80, Astc_6x6_unorm = 81, Astc_6x6_unorm_srgb = 82, Astc_8x5_unorm = 83, Astc_8x5_unorm_srgb = 84, Astc_8x6_unorm = 85, Astc_8x6_unorm_srgb = 86, Astc_8x8_unorm = 87, Astc_8x8_unorm_srgb = 88, Astc_10x5_unorm = 89, Astc_10x5_unorm_srgb = 90, Astc_10x6_unorm = 91, Astc_10x6_unorm_srgb = 92, Astc_10x8_unorm = 93, Astc_10x8_unorm_srgb = 94, Astc_10x10_unorm = 95, Astc_10x10_unorm_srgb = 96, Astc_12x10_unorm = 97, Astc_12x10_unorm_srgb = 98, Astc_12x12_unorm = 99, Astc_12x12_unorm_srgb = 100,
}

Variants§

§

R8unorm = 0

§

R8snorm = 1

§

R8uint = 2

§

R8sint = 3

§

R16unorm = 4

§

R16snorm = 5

§

R16uint = 6

§

R16sint = 7

§

R16float = 8

§

Rg8unorm = 9

§

Rg8snorm = 10

§

Rg8uint = 11

§

Rg8sint = 12

§

R32uint = 13

§

R32sint = 14

§

R32float = 15

§

Rg16unorm = 16

§

Rg16snorm = 17

§

Rg16uint = 18

§

Rg16sint = 19

§

Rg16float = 20

§

Rgba8unorm = 21

§

Rgba8unorm_srgb = 22

§

Rgba8snorm = 23

§

Rgba8uint = 24

§

Rgba8sint = 25

§

Bgra8unorm = 26

§

Bgra8unorm_srgb = 27

§

Rgb9e5ufloat = 28

§

Rgb10a2uint = 29

§

Rgb10a2unorm = 30

§

Rg11b10ufloat = 31

§

Rg32uint = 32

§

Rg32sint = 33

§

Rg32float = 34

§

Rgba16unorm = 35

§

Rgba16snorm = 36

§

Rgba16uint = 37

§

Rgba16sint = 38

§

Rgba16float = 39

§

Rgba32uint = 40

§

Rgba32sint = 41

§

Rgba32float = 42

§

Stencil8 = 43

§

Depth16unorm = 44

§

Depth24plus = 45

§

Depth24plus_stencil8 = 46

§

Depth32float = 47

§

Depth32float_stencil8 = 48

§

Bc1_rgba_unorm = 49

§

Bc1_rgba_unorm_srgb = 50

§

Bc2_rgba_unorm = 51

§

Bc2_rgba_unorm_srgb = 52

§

Bc3_rgba_unorm = 53

§

Bc3_rgba_unorm_srgb = 54

§

Bc4_r_unorm = 55

§

Bc4_r_snorm = 56

§

Bc5_rg_unorm = 57

§

Bc5_rg_snorm = 58

§

Bc6h_rgb_ufloat = 59

§

Bc6h_rgb_float = 60

§

Bc7_rgba_unorm = 61

§

Bc7_rgba_unorm_srgb = 62

§

Etc2_rgb8unorm = 63

§

Etc2_rgb8unorm_srgb = 64

§

Etc2_rgb8a1unorm = 65

§

Etc2_rgb8a1unorm_srgb = 66

§

Etc2_rgba8unorm = 67

§

Etc2_rgba8unorm_srgb = 68

§

Eac_r11unorm = 69

§

Eac_r11snorm = 70

§

Eac_rg11unorm = 71

§

Eac_rg11snorm = 72

§

Astc_4x4_unorm = 73

§

Astc_4x4_unorm_srgb = 74

§

Astc_5x4_unorm = 75

§

Astc_5x4_unorm_srgb = 76

§

Astc_5x5_unorm = 77

§

Astc_5x5_unorm_srgb = 78

§

Astc_6x5_unorm = 79

§

Astc_6x5_unorm_srgb = 80

§

Astc_6x6_unorm = 81

§

Astc_6x6_unorm_srgb = 82

§

Astc_8x5_unorm = 83

§

Astc_8x5_unorm_srgb = 84

§

Astc_8x6_unorm = 85

§

Astc_8x6_unorm_srgb = 86

§

Astc_8x8_unorm = 87

§

Astc_8x8_unorm_srgb = 88

§

Astc_10x5_unorm = 89

§

Astc_10x5_unorm_srgb = 90

§

Astc_10x6_unorm = 91

§

Astc_10x6_unorm_srgb = 92

§

Astc_10x8_unorm = 93

§

Astc_10x8_unorm_srgb = 94

§

Astc_10x10_unorm = 95

§

Astc_10x10_unorm_srgb = 96

§

Astc_12x10_unorm = 97

§

Astc_12x10_unorm_srgb = 98

§

Astc_12x12_unorm = 99

§

Astc_12x12_unorm_srgb = 100

Implementations§

Source§

impl GPUTextureFormat

Source

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

Trait Implementations§

Source§

impl Clone for GPUTextureFormat

Source§

fn clone(&self) -> GPUTextureFormat

Returns a duplicate 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 GPUTextureFormat

Source§

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

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

impl Default for GPUTextureFormat

Source§

fn default() -> GPUTextureFormat

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

impl FromJSValConvertible for GPUTextureFormat

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

unsafe fn from_jsval( _cx: *mut RawJSContext, value: HandleValue<'_>, _option: (), ) -> Result<ConversionResult<GPUTextureFormat>, ()>

Convert val to type Self. Optional configuration of type T can be passed as the option argument. If it returns Err(()), a JSAPI exception is pending. If it returns Ok(Failure(reason)), there is no pending JSAPI exception.
Source§

fn safe_from_jsval( cx: &mut JSContext, value: HandleValue<'_>, _option: (), ) -> Result<ConversionResult<GPUTextureFormat>, ()>

Convert val to type Self. Optional configuration of type T can be passed as the option argument. If it returns Err(()), a JSAPI exception is pending. If it returns Ok(Failure(reason)), there is no pending JSAPI exception.
Source§

impl FromStr for GPUTextureFormat

Source§

type Err = ()

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

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

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

impl MallocSizeOf for GPUTextureFormat

Source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself.
Source§

impl PartialEq for GPUTextureFormat

Source§

fn eq(&self, other: &GPUTextureFormat) -> 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 ToJSValConvertible for GPUTextureFormat

Source§

unsafe fn to_jsval(&self, cx: *mut RawJSContext, rval: MutableHandleValue<'_>)

Convert self to a JSVal. JSAPI failure causes a panic.
Source§

fn safe_to_jsval(&self, cx: &mut JSContext, rval: MutableHandle<'_, Value>)

Convert self to a JSVal. JSAPI failure causes a panic.
Source§

impl Traceable for GPUTextureFormat

Source§

unsafe fn trace(&self, tracer: *mut JSTracer)

Trace self.
Source§

impl Copy for GPUTextureFormat

Source§

impl StructuralPartialEq for GPUTextureFormat

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> Filterable for T

Source§

fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>

Creates a filterable data provider with the given name for debugging. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> MaybeBoxed<Box<T>> for T

Source§

fn maybe_boxed(self) -> Box<T>

Convert
Source§

impl<T> MaybeBoxed<T> for T

Source§

fn maybe_boxed(self) -> T

Convert
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> SafeFromJSValConvertible for T

Source§

impl<T> SafeToJSValConvertible for T

Source§

fn safe_to_jsval( &self, cx: JSContext, rval: MutableHandle<'_, Value>, _can_gc: CanGc, )

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T