[−][src]Struct web_sys::GpuRenderPipelineDescriptor
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]
layout: &GpuPipelineLayout,
color_states: &JsValue,
primitive_topology: GpuPrimitiveTopology,
vertex_stage: &GpuProgrammableStageDescriptor
) -> Self
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]
&mut self,
val: &GpuDepthStencilStateDescriptor
) -> &mut Self
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]
&mut self,
val: &GpuProgrammableStageDescriptor
) -> &mut Self
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]
&mut self,
val: &GpuRasterizationStateDescriptor
) -> &mut Self
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]
&mut self,
val: &GpuProgrammableStageDescriptor
) -> &mut Self
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]
fn as_ref(&self) -> &GpuRenderPipelineDescriptor[src]
impl AsRef<JsValue> for GpuRenderPipelineDescriptor[src]
impl AsRef<Object> for GpuRenderPipelineDescriptor[src]
impl Clone for GpuRenderPipelineDescriptor[src]
fn clone(&self) -> GpuRenderPipelineDescriptor[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for GpuRenderPipelineDescriptor[src]
impl Deref for GpuRenderPipelineDescriptor[src]
impl Eq for GpuRenderPipelineDescriptor[src]
impl From<GpuRenderPipelineDescriptor> for JsValue[src]
fn from(obj: GpuRenderPipelineDescriptor) -> JsValue[src]
impl From<GpuRenderPipelineDescriptor> for Object[src]
fn from(obj: GpuRenderPipelineDescriptor) -> Object[src]
impl From<JsValue> for GpuRenderPipelineDescriptor[src]
fn from(obj: JsValue) -> 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
unsafe fn from_abi(js: Self::Abi) -> Self[src]
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
fn into_abi(self) -> Self::Abi[src]
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
fn into_abi(self) -> Self::Abi[src]
impl JsCast for GpuRenderPipelineDescriptor[src]
fn instanceof(val: &JsValue) -> bool[src]
fn unchecked_from_js(val: JsValue) -> Self[src]
fn unchecked_from_js_ref(val: &JsValue) -> &Self[src]
fn has_type<T>(&self) -> bool where
T: JsCast, [src]
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self> where
T: JsCast, [src]
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T> where
T: JsCast, [src]
T: JsCast,
fn unchecked_into<T>(self) -> T where
T: JsCast, [src]
T: JsCast,
fn unchecked_ref<T>(&self) -> &T where
T: JsCast, [src]
T: JsCast,
fn is_instance_of<T>(&self) -> bool where
T: JsCast, [src]
T: JsCast,
fn is_type_of(val: &JsValue) -> bool[src]
impl OptionFromWasmAbi for GpuRenderPipelineDescriptor[src]
impl OptionIntoWasmAbi for GpuRenderPipelineDescriptor[src]
impl<'a> OptionIntoWasmAbi for &'a GpuRenderPipelineDescriptor[src]
impl PartialEq<GpuRenderPipelineDescriptor> for GpuRenderPipelineDescriptor[src]
fn eq(&self, other: &GpuRenderPipelineDescriptor) -> bool[src]
fn ne(&self, other: &GpuRenderPipelineDescriptor) -> bool[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
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor[src]
impl StructuralEq for GpuRenderPipelineDescriptor[src]
impl StructuralPartialEq for GpuRenderPipelineDescriptor[src]
impl WasmDescribe for GpuRenderPipelineDescriptor[src]
Auto Trait Implementations
impl RefUnwindSafe for GpuRenderPipelineDescriptor
impl !Send for GpuRenderPipelineDescriptor
impl !Sync for GpuRenderPipelineDescriptor
impl Unpin for GpuRenderPipelineDescriptor
impl UnwindSafe for GpuRenderPipelineDescriptor
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi, [src]
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,