Enum web_sys::GpuTextureFormat[][src]

pub enum GpuTextureFormat {
Show variants R8unorm, R8snorm, R8uint, R8sint, R16uint, R16sint, R16float, Rg8unorm, Rg8snorm, Rg8uint, Rg8sint, R32uint, R32sint, R32float, Rg16uint, Rg16sint, Rg16float, Rgba8unorm, Rgba8unormSrgb, Rgba8snorm, Rgba8uint, Rgba8sint, Bgra8unorm, Bgra8unormSrgb, Rgb9e5ufloat, Rgb10a2unorm, Rg11b10ufloat, Rg32uint, Rg32sint, Rg32float, Rgba16uint, Rgba16sint, Rgba16float, Rgba32uint, Rgba32sint, Rgba32float, Stencil8, Depth16unorm, Depth24plus, Depth24plusStencil8, Depth32float, Bc1RgbaUnorm, Bc1RgbaUnormSrgb, Bc2RgbaUnorm, Bc2RgbaUnormSrgb, Bc3RgbaUnorm, Bc3RgbaUnormSrgb, Bc4RUnorm, Bc4RSnorm, Bc5RgUnorm, Bc5RgSnorm, Bc6hRgbUfloat, Bc6hRgbFloat, Bc7RgbaUnorm, Bc7RgbaUnormSrgb, Depth24unormStencil8, Depth32floatStencil8, // some variants omitted
}

The GpuTextureFormat enum.

This API requires the following crate features to be activated: GpuTextureFormat

This API is unstable and requires --cfg=web_sys_unstable_apis to be activated, as described in the wasm-bindgen guide

Variants

R8unorm
R8snorm
R8uint
R8sint
R16uint
R16sint
R16float
Rg8unorm
Rg8snorm
Rg8uint
Rg8sint
R32uint
R32sint
R32float
Rg16uint
Rg16sint
Rg16float
Rgba8unorm
Rgba8unormSrgb
Rgba8snorm
Rgba8uint
Rgba8sint
Bgra8unorm
Bgra8unormSrgb
Rgb9e5ufloat
Rgb10a2unorm
Rg11b10ufloat
Rg32uint
Rg32sint
Rg32float
Rgba16uint
Rgba16sint
Rgba16float
Rgba32uint
Rgba32sint
Rgba32float
Stencil8
Depth16unorm
Depth24plus
Depth24plusStencil8
Depth32float
Bc1RgbaUnorm
Bc1RgbaUnormSrgb
Bc2RgbaUnorm
Bc2RgbaUnormSrgb
Bc3RgbaUnorm
Bc3RgbaUnormSrgb
Bc4RUnorm
Bc4RSnorm
Bc5RgUnorm
Bc5RgSnorm
Bc6hRgbUfloat
Bc6hRgbFloat
Bc7RgbaUnorm
Bc7RgbaUnormSrgb
Depth24unormStencil8
Depth32floatStencil8

Implementations

impl GpuTextureFormat[src]

Trait Implementations

impl Clone for GpuTextureFormat[src]

fn clone(&self) -> GpuTextureFormat[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for GpuTextureFormat[src]

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

Formats the value using the given formatter. Read more

impl From<GpuTextureFormat> for JsValue[src]

fn from(obj: GpuTextureFormat) -> JsValue[src]

Performs the conversion.

impl FromWasmAbi for GpuTextureFormat[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

unsafe fn from_abi(js: Self::Abi) -> Self[src]

Recover a Self from Self::Abi. Read more

impl IntoWasmAbi for GpuTextureFormat[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

fn into_abi(self) -> Self::Abi[src]

Convert self into Self::Abi so that it can be sent across the wasm ABI boundary. Read more

impl OptionFromWasmAbi for GpuTextureFormat[src]

fn is_none(abi: &Self::Abi) -> bool[src]

Tests whether the argument is a “none” instance. If so it will be deserialized as None, and otherwise it will be passed to FromWasmAbi. Read more

impl OptionIntoWasmAbi for GpuTextureFormat[src]

fn none() -> Self::Abi[src]

Returns an ABI instance indicating “none”, which JS will interpret as the None branch of this option. Read more

impl PartialEq<GpuTextureFormat> for GpuTextureFormat[src]

fn eq(&self, other: &GpuTextureFormat) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl WasmDescribe for GpuTextureFormat[src]

impl Copy for GpuTextureFormat[src]

impl Eq for GpuTextureFormat[src]

impl StructuralEq for GpuTextureFormat[src]

impl StructuralPartialEq for GpuTextureFormat[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

pub fn return_abi(self) -> <T as ReturnWasmAbi>::Abi[src]

Same as IntoWasmAbi::into_abi, except that it may throw and never return in the case of Err. Read more

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.