[][src]Struct web_sys::GpuTextureViewDescriptor

#[repr(transparent)]pub struct GpuTextureViewDescriptor { /* fields omitted */ }

The GpuTextureViewDescriptor dictionary.

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

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

Implementations

impl GpuTextureViewDescriptor[src]

pub fn new() -> Self[src]

Construct a new GpuTextureViewDescriptor.

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

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

pub fn label(&mut self, val: &str) -> &mut Self[src]

Change the label field of this object.

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

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

pub fn array_layer_count(&mut self, val: u32) -> &mut Self[src]

Change the arrayLayerCount field of this object.

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

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

pub fn aspect(&mut self, val: GpuTextureAspect) -> &mut Self[src]

Change the aspect field of this object.

This API requires the following crate features to be activated: GpuTextureAspect, GpuTextureViewDescriptor

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

pub fn base_array_layer(&mut self, val: u32) -> &mut Self[src]

Change the baseArrayLayer field of this object.

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

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

pub fn base_mip_level(&mut self, val: u32) -> &mut Self[src]

Change the baseMipLevel field of this object.

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

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

pub fn dimension(&mut self, val: GpuTextureViewDimension) -> &mut Self[src]

Change the dimension field of this object.

This API requires the following crate features to be activated: GpuTextureViewDescriptor, GpuTextureViewDimension

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

pub fn format(&mut self, val: GpuTextureFormat) -> &mut Self[src]

Change the format field of this object.

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

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

pub fn mip_level_count(&mut self, val: u32) -> &mut Self[src]

Change the mipLevelCount field of this object.

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

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

Trait Implementations

impl AsRef<GpuTextureViewDescriptor> for GpuTextureViewDescriptor[src]

impl AsRef<JsValue> for GpuTextureViewDescriptor[src]

impl AsRef<Object> for GpuTextureViewDescriptor[src]

impl Clone for GpuTextureViewDescriptor[src]

impl Debug for GpuTextureViewDescriptor[src]

impl Deref for GpuTextureViewDescriptor[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for GpuTextureViewDescriptor[src]

impl From<GpuTextureViewDescriptor> for JsValue[src]

impl From<GpuTextureViewDescriptor> for Object[src]

impl From<JsValue> for GpuTextureViewDescriptor[src]

impl FromWasmAbi for GpuTextureViewDescriptor[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

impl IntoWasmAbi for GpuTextureViewDescriptor[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

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

impl<'a> IntoWasmAbi for &'a GpuTextureViewDescriptor[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

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

impl JsCast for GpuTextureViewDescriptor[src]

impl OptionFromWasmAbi for GpuTextureViewDescriptor[src]

impl OptionIntoWasmAbi for GpuTextureViewDescriptor[src]

impl<'a> OptionIntoWasmAbi for &'a GpuTextureViewDescriptor[src]

impl PartialEq<GpuTextureViewDescriptor> for GpuTextureViewDescriptor[src]

impl RefFromWasmAbi for GpuTextureViewDescriptor[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<GpuTextureViewDescriptor>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl StructuralEq for GpuTextureViewDescriptor[src]

impl StructuralPartialEq for GpuTextureViewDescriptor[src]

impl WasmDescribe for GpuTextureViewDescriptor[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

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

type Owned = T

The resulting type after obtaining ownership.

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.

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.