[][src]Struct web_sys::GpuSamplerDescriptor

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

The GpuSamplerDescriptor dictionary.

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

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

Implementations

impl GpuSamplerDescriptor[src]

pub fn new() -> Self[src]

Construct a new GpuSamplerDescriptor.

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

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: GpuSamplerDescriptor

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

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

Change the addressModeU field of this object.

This API requires the following crate features to be activated: GpuAddressMode, GpuSamplerDescriptor

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

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

Change the addressModeV field of this object.

This API requires the following crate features to be activated: GpuAddressMode, GpuSamplerDescriptor

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

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

Change the addressModeW field of this object.

This API requires the following crate features to be activated: GpuAddressMode, GpuSamplerDescriptor

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

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

Change the compare field of this object.

This API requires the following crate features to be activated: GpuCompareFunction, GpuSamplerDescriptor

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

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

Change the lodMaxClamp field of this object.

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

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

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

Change the lodMinClamp field of this object.

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

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

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

Change the magFilter field of this object.

This API requires the following crate features to be activated: GpuFilterMode, GpuSamplerDescriptor

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

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

Change the minFilter field of this object.

This API requires the following crate features to be activated: GpuFilterMode, GpuSamplerDescriptor

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

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

Change the mipmapFilter field of this object.

This API requires the following crate features to be activated: GpuFilterMode, GpuSamplerDescriptor

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<GpuSamplerDescriptor> for GpuSamplerDescriptor[src]

impl AsRef<JsValue> for GpuSamplerDescriptor[src]

impl AsRef<Object> for GpuSamplerDescriptor[src]

impl Clone for GpuSamplerDescriptor[src]

impl Debug for GpuSamplerDescriptor[src]

impl Deref for GpuSamplerDescriptor[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for GpuSamplerDescriptor[src]

impl From<GpuSamplerDescriptor> for JsValue[src]

impl From<GpuSamplerDescriptor> for Object[src]

impl From<JsValue> for GpuSamplerDescriptor[src]

impl FromWasmAbi for GpuSamplerDescriptor[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 GpuSamplerDescriptor[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 GpuSamplerDescriptor[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 GpuSamplerDescriptor[src]

impl OptionFromWasmAbi for GpuSamplerDescriptor[src]

impl OptionIntoWasmAbi for GpuSamplerDescriptor[src]

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

impl PartialEq<GpuSamplerDescriptor> for GpuSamplerDescriptor[src]

impl RefFromWasmAbi for GpuSamplerDescriptor[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<GpuSamplerDescriptor>

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 GpuSamplerDescriptor[src]

impl StructuralPartialEq for GpuSamplerDescriptor[src]

impl WasmDescribe for GpuSamplerDescriptor[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.