[][src]Struct web_sys::WebGpuDevice

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

The WebGPUDevice object

MDN Documentation

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

Methods

impl WebGpuDevice[src]

pub fn create_attachment_state(&self) -> WebGpuAttachmentState[src]

The createAttachmentState() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuAttachmentState, WebGpuDevice

impl WebGpuDevice[src]

pub fn create_attachment_state_with_descriptor(
    &self,
    descriptor: &WebGpuAttachmentStateDescriptor
) -> WebGpuAttachmentState
[src]

The createAttachmentState() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuAttachmentState, WebGpuAttachmentStateDescriptor, WebGpuDevice

impl WebGpuDevice[src]

pub fn create_bind_group(&self) -> WebGpuBindGroup[src]

The createBindGroup() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuBindGroup, WebGpuDevice

impl WebGpuDevice[src]

pub fn create_bind_group_with_descriptor(
    &self,
    descriptor: &WebGpuBindGroupDescriptor
) -> WebGpuBindGroup
[src]

The createBindGroup() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuBindGroup, WebGpuBindGroupDescriptor, WebGpuDevice

impl WebGpuDevice[src]

pub fn create_bind_group_layout(&self) -> WebGpuBindGroupLayout[src]

The createBindGroupLayout() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuBindGroupLayout, WebGpuDevice

impl WebGpuDevice[src]

pub fn create_bind_group_layout_with_descriptor(
    &self,
    descriptor: &WebGpuBindGroupLayoutDescriptor
) -> WebGpuBindGroupLayout
[src]

The createBindGroupLayout() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuBindGroupLayout, WebGpuBindGroupLayoutDescriptor, WebGpuDevice

impl WebGpuDevice[src]

pub fn create_blend_state(&self) -> WebGpuBlendState[src]

The createBlendState() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuBlendState, WebGpuDevice

impl WebGpuDevice[src]

pub fn create_blend_state_with_descriptor(
    &self,
    descriptor: &WebGpuBlendStateDescriptor
) -> WebGpuBlendState
[src]

The createBlendState() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuBlendState, WebGpuBlendStateDescriptor, WebGpuDevice

impl WebGpuDevice[src]

pub fn create_buffer(&self) -> WebGpuBuffer[src]

The createBuffer() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuBuffer, WebGpuDevice

impl WebGpuDevice[src]

pub fn create_buffer_with_descriptor(
    &self,
    descriptor: &WebGpuBufferDescriptor
) -> WebGpuBuffer
[src]

The createBuffer() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuBuffer, WebGpuBufferDescriptor, WebGpuDevice

impl WebGpuDevice[src]

pub fn create_command_encoder(&self) -> WebGpuCommandEncoder[src]

The createCommandEncoder() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuCommandEncoder, WebGpuDevice

impl WebGpuDevice[src]

pub fn create_command_encoder_with_descriptor(
    &self,
    descriptor: &WebGpuCommandEncoderDescriptor
) -> WebGpuCommandEncoder
[src]

The createCommandEncoder() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuCommandEncoder, WebGpuCommandEncoderDescriptor, WebGpuDevice

impl WebGpuDevice[src]

pub fn create_compute_pipeline(
    &self,
    descriptor: &WebGpuComputePipelineDescriptor
) -> WebGpuComputePipeline
[src]

The createComputePipeline() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuComputePipeline, WebGpuComputePipelineDescriptor, WebGpuDevice

impl WebGpuDevice[src]

pub fn create_depth_stencil_state(&self) -> WebGpuDepthStencilState[src]

The createDepthStencilState() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuDepthStencilState, WebGpuDevice

impl WebGpuDevice[src]

pub fn create_depth_stencil_state_with_descriptor(
    &self,
    descriptor: &WebGpuDepthStencilStateDescriptor
) -> WebGpuDepthStencilState
[src]

The createDepthStencilState() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuDepthStencilState, WebGpuDepthStencilStateDescriptor, WebGpuDevice

impl WebGpuDevice[src]

pub fn create_input_state(&self) -> WebGpuInputState[src]

The createInputState() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuDevice, WebGpuInputState

impl WebGpuDevice[src]

pub fn create_input_state_with_descriptor(
    &self,
    descriptor: &WebGpuInputStateDescriptor
) -> WebGpuInputState
[src]

The createInputState() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuDevice, WebGpuInputState, WebGpuInputStateDescriptor

impl WebGpuDevice[src]

pub fn create_pipeline_layout(&self) -> WebGpuPipelineLayout[src]

The createPipelineLayout() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuDevice, WebGpuPipelineLayout

impl WebGpuDevice[src]

pub fn create_pipeline_layout_with_descriptor(
    &self,
    descriptor: &WebGpuPipelineLayoutDescriptor
) -> WebGpuPipelineLayout
[src]

The createPipelineLayout() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuDevice, WebGpuPipelineLayout, WebGpuPipelineLayoutDescriptor

impl WebGpuDevice[src]

pub fn create_render_pipeline(
    &self,
    descriptor: &WebGpuRenderPipelineDescriptor
) -> WebGpuRenderPipeline
[src]

The createRenderPipeline() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuDevice, WebGpuRenderPipeline, WebGpuRenderPipelineDescriptor

impl WebGpuDevice[src]

pub fn create_sampler(&self) -> WebGpuSampler[src]

The createSampler() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuDevice, WebGpuSampler

impl WebGpuDevice[src]

pub fn create_sampler_with_descriptor(
    &self,
    descriptor: &WebGpuSamplerDescriptor
) -> WebGpuSampler
[src]

The createSampler() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuDevice, WebGpuSampler, WebGpuSamplerDescriptor

impl WebGpuDevice[src]

pub fn create_shader_module(
    &self,
    descriptor: &WebGpuShaderModuleDescriptor
) -> WebGpuShaderModule
[src]

The createShaderModule() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuDevice, WebGpuShaderModule, WebGpuShaderModuleDescriptor

impl WebGpuDevice[src]

pub fn create_texture(&self) -> WebGpuTexture[src]

The createTexture() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuDevice, WebGpuTexture

impl WebGpuDevice[src]

pub fn create_texture_with_descriptor(
    &self,
    descriptor: &WebGpuTextureDescriptor
) -> WebGpuTexture
[src]

The createTexture() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuDevice, WebGpuTexture, WebGpuTextureDescriptor

impl WebGpuDevice[src]

pub fn extensions(&self) -> WebGpuExtensions[src]

The extensions() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuDevice, WebGpuExtensions

impl WebGpuDevice[src]

pub fn get_object_status_with_web_gpu_buffer(
    &self,
    obj: &WebGpuBuffer
) -> Promise
[src]

The getObjectStatus() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuBuffer, WebGpuDevice

impl WebGpuDevice[src]

pub fn get_object_status_with_web_gpu_texture(
    &self,
    obj: &WebGpuTexture
) -> Promise
[src]

The getObjectStatus() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuDevice, WebGpuTexture

impl WebGpuDevice[src]

pub fn get_queue(&self) -> WebGpuQueue[src]

The getQueue() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuDevice, WebGpuQueue

impl WebGpuDevice[src]

pub fn limits(&self) -> WebGpuLimits[src]

The limits() method

MDN Documentation

This API requires the following crate features to be activated: WebGpuDevice, WebGpuLimits

impl WebGpuDevice[src]

pub fn adapter(&self) -> WebGpuAdapter[src]

The adapter getter

MDN Documentation

This API requires the following crate features to be activated: WebGpuAdapter, WebGpuDevice

impl WebGpuDevice[src]

pub fn on_log(&self) -> Function[src]

The onLog getter

MDN Documentation

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

impl WebGpuDevice[src]

pub fn set_on_log(&self, on_log: &Function)[src]

The onLog setter

MDN Documentation

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

Trait Implementations

impl AsRef<JsValue> for WebGpuDevice[src]

impl AsRef<Object> for WebGpuDevice[src]

impl From<JsValue> for WebGpuDevice[src]

impl From<WebGpuDevice> for JsValue[src]

impl From<WebGpuDevice> for Object[src]

impl Clone for WebGpuDevice[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for WebGpuDevice[src]

impl Deref for WebGpuDevice[src]

type Target = Object

The resulting type after dereferencing.

impl JsCast for WebGpuDevice[src]

fn is_instance_of<T>(&self) -> bool where
    T: JsCast
[src]

Test whether this JS value is an instance of the type T. Read more

fn dyn_into<T>(self) -> Result<T, Self> where
    T: JsCast
[src]

Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more

fn dyn_ref<T>(&self) -> Option<&T> where
    T: JsCast
[src]

Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more

fn unchecked_into<T>(self) -> T where
    T: JsCast
[src]

Performs a zero-cost unchecked cast into the specified type. Read more

fn unchecked_ref<T>(&self) -> &T where
    T: JsCast
[src]

Performs a zero-cost unchecked cast into a reference to the specified type. Read more

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

impl IntoWasmAbi for WebGpuDevice[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 WebGpuDevice[src]

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

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

impl OptionIntoWasmAbi for WebGpuDevice[src]

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

impl OptionFromWasmAbi for WebGpuDevice[src]

impl RefFromWasmAbi for WebGpuDevice[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<WebGpuDevice>

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

Auto Trait Implementations

impl !Send for WebGpuDevice

impl !Sync for WebGpuDevice

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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

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

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi