[][src]Struct web_sys::GpuRenderPipelineDescriptor

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

The GpuRenderPipelineDescriptor dictionary.

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

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

Implementations

impl GpuRenderPipelineDescriptor[src]

pub fn new(
    layout: &GpuPipelineLayout,
    color_states: &JsValue,
    primitive_topology: GpuPrimitiveTopology,
    vertex_stage: &GpuProgrammableStageDescriptor
) -> Self
[src]

Construct a new GpuRenderPipelineDescriptor.

This API requires the following crate features to be activated: GpuPipelineLayout, GpuPrimitiveTopology, GpuProgrammableStageDescriptor, GpuRenderPipelineDescriptor

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

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

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

Change the layout field of this object.

This API requires the following crate features to be activated: GpuPipelineLayout, GpuRenderPipelineDescriptor

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

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

Change the alphaToCoverageEnabled field of this object.

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

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

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

Change the colorStates field of this object.

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

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

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

Change the depthStencilState field of this object.

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

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

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

Change the fragmentStage field of this object.

This API requires the following crate features to be activated: GpuProgrammableStageDescriptor, GpuRenderPipelineDescriptor

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

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

Change the primitiveTopology field of this object.

This API requires the following crate features to be activated: GpuPrimitiveTopology, GpuRenderPipelineDescriptor

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

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

Change the rasterizationState field of this object.

This API requires the following crate features to be activated: GpuRasterizationStateDescriptor, GpuRenderPipelineDescriptor

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

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

Change the sampleCount field of this object.

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

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

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

Change the sampleMask field of this object.

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

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

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

Change the vertexStage field of this object.

This API requires the following crate features to be activated: GpuProgrammableStageDescriptor, GpuRenderPipelineDescriptor

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

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

Change the vertexState field of this object.

This API requires the following crate features to be activated: GpuRenderPipelineDescriptor, GpuVertexStateDescriptor

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

impl AsRef<JsValue> for GpuRenderPipelineDescriptor[src]

impl AsRef<Object> for GpuRenderPipelineDescriptor[src]

impl Clone for GpuRenderPipelineDescriptor[src]

impl Debug for GpuRenderPipelineDescriptor[src]

impl Deref for GpuRenderPipelineDescriptor[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for GpuRenderPipelineDescriptor[src]

impl From<GpuRenderPipelineDescriptor> for JsValue[src]

impl From<GpuRenderPipelineDescriptor> for Object[src]

impl From<JsValue> for GpuRenderPipelineDescriptor[src]

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

impl OptionFromWasmAbi for GpuRenderPipelineDescriptor[src]

impl OptionIntoWasmAbi for GpuRenderPipelineDescriptor[src]

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

impl PartialEq<GpuRenderPipelineDescriptor> for GpuRenderPipelineDescriptor[src]

impl RefFromWasmAbi for GpuRenderPipelineDescriptor[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<GpuRenderPipelineDescriptor>

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

impl StructuralPartialEq for GpuRenderPipelineDescriptor[src]

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