[][src]Struct web_sys::GpuDepthStencilStateDescriptor

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

The GpuDepthStencilStateDescriptor dictionary.

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

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

Implementations

impl GpuDepthStencilStateDescriptor[src]

pub fn new(format: GpuTextureFormat) -> Self[src]

Construct a new GpuDepthStencilStateDescriptor.

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

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

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

Change the depthCompare field of this object.

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

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

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

Change the depthWriteEnabled field of this object.

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

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: GpuDepthStencilStateDescriptor, GpuTextureFormat

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

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

Change the stencilBack field of this object.

This API requires the following crate features to be activated: GpuDepthStencilStateDescriptor, GpuStencilStateFaceDescriptor

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

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

Change the stencilFront field of this object.

This API requires the following crate features to be activated: GpuDepthStencilStateDescriptor, GpuStencilStateFaceDescriptor

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

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

Change the stencilReadMask field of this object.

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

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

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

Change the stencilWriteMask field of this object.

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

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

impl AsRef<JsValue> for GpuDepthStencilStateDescriptor[src]

impl AsRef<Object> for GpuDepthStencilStateDescriptor[src]

impl Clone for GpuDepthStencilStateDescriptor[src]

impl Debug for GpuDepthStencilStateDescriptor[src]

impl Deref for GpuDepthStencilStateDescriptor[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for GpuDepthStencilStateDescriptor[src]

impl From<GpuDepthStencilStateDescriptor> for JsValue[src]

impl From<GpuDepthStencilStateDescriptor> for Object[src]

impl From<JsValue> for GpuDepthStencilStateDescriptor[src]

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

impl OptionFromWasmAbi for GpuDepthStencilStateDescriptor[src]

impl OptionIntoWasmAbi for GpuDepthStencilStateDescriptor[src]

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

impl PartialEq<GpuDepthStencilStateDescriptor> for GpuDepthStencilStateDescriptor[src]

impl RefFromWasmAbi for GpuDepthStencilStateDescriptor[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<GpuDepthStencilStateDescriptor>

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

impl StructuralPartialEq for GpuDepthStencilStateDescriptor[src]

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