[−][src]Struct web_sys::WebGpuDevice
The WebGPUDevice object
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
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]
&self,
descriptor: &WebGpuAttachmentStateDescriptor
) -> WebGpuAttachmentState
The createAttachmentState() method
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
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]
&self,
descriptor: &WebGpuBindGroupDescriptor
) -> WebGpuBindGroup
The createBindGroup() method
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
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]
&self,
descriptor: &WebGpuBindGroupLayoutDescriptor
) -> WebGpuBindGroupLayout
The createBindGroupLayout() method
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
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]
&self,
descriptor: &WebGpuBlendStateDescriptor
) -> WebGpuBlendState
The createBlendState() method
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
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]
&self,
descriptor: &WebGpuBufferDescriptor
) -> WebGpuBuffer
The createBuffer() method
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
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]
&self,
descriptor: &WebGpuCommandEncoderDescriptor
) -> WebGpuCommandEncoder
The createCommandEncoder() method
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]
&self,
descriptor: &WebGpuComputePipelineDescriptor
) -> WebGpuComputePipeline
The createComputePipeline() method
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
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]
&self,
descriptor: &WebGpuDepthStencilStateDescriptor
) -> WebGpuDepthStencilState
The createDepthStencilState() method
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
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]
&self,
descriptor: &WebGpuInputStateDescriptor
) -> WebGpuInputState
The createInputState() method
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
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]
&self,
descriptor: &WebGpuPipelineLayoutDescriptor
) -> WebGpuPipelineLayout
The createPipelineLayout() method
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]
&self,
descriptor: &WebGpuRenderPipelineDescriptor
) -> WebGpuRenderPipeline
The createRenderPipeline() method
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
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]
&self,
descriptor: &WebGpuSamplerDescriptor
) -> WebGpuSampler
The createSampler() method
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]
&self,
descriptor: &WebGpuShaderModuleDescriptor
) -> WebGpuShaderModule
The createShaderModule() method
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
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]
&self,
descriptor: &WebGpuTextureDescriptor
) -> WebGpuTexture
The createTexture() method
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
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]
&self,
obj: &WebGpuBuffer
) -> Promise
The getObjectStatus() method
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]
&self,
obj: &WebGpuTexture
) -> Promise
The getObjectStatus() method
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
This API requires the following crate features to be activated: WebGpuDevice, WebGpuQueue
impl WebGpuDevice[src]
pub fn limits(&self) -> WebGpuLimits[src]
The limits() method
This API requires the following crate features to be activated: WebGpuDevice, WebGpuLimits
impl WebGpuDevice[src]
pub fn adapter(&self) -> WebGpuAdapter[src]
The adapter getter
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
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
This API requires the following crate features to be activated: WebGpuDevice
Trait Implementations
impl Clone for WebGpuDevice[src]
fn clone(&self) -> WebGpuDevice[src]
default fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl AsRef<JsValue> for WebGpuDevice[src]
impl AsRef<Object> for WebGpuDevice[src]
impl From<JsValue> for WebGpuDevice[src]
fn from(obj: JsValue) -> WebGpuDevice[src]
impl From<WebGpuDevice> for JsValue[src]
fn from(obj: WebGpuDevice) -> JsValue[src]
impl From<WebGpuDevice> for Object[src]
fn from(obj: WebGpuDevice) -> Object[src]
impl Deref for WebGpuDevice[src]
impl Debug for WebGpuDevice[src]
impl JsCast for WebGpuDevice[src]
fn instanceof(val: &JsValue) -> bool[src]
fn unchecked_from_js(val: JsValue) -> Self[src]
fn unchecked_from_js_ref(val: &JsValue) -> &Self[src]
default fn is_instance_of<T>(&self) -> bool where
T: JsCast, [src]
T: JsCast,
Test whether this JS value is an instance of the type T. Read more
default fn dyn_into<T>(self) -> Result<T, Self> where
T: JsCast, [src]
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more
default fn dyn_ref<T>(&self) -> Option<&T> where
T: JsCast, [src]
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more
default fn unchecked_into<T>(self) -> T where
T: JsCast, [src]
T: JsCast,
Performs a zero-cost unchecked cast into the specified type. Read more
default fn unchecked_ref<T>(&self) -> &T where
T: JsCast, [src]
T: JsCast,
Performs a zero-cost unchecked cast into a reference to the specified type. Read more
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
unsafe fn ref_from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Self::Anchor[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
fn into_abi(self, extra: &mut dyn Stack) -> Self::Abi[src]
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
fn into_abi(self, extra: &mut dyn Stack) -> Self::Abi[src]
impl WasmDescribe for WebGpuDevice[src]
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
unsafe fn from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Self[src]
impl OptionIntoWasmAbi for WebGpuDevice[src]
impl<'a> OptionIntoWasmAbi for &'a WebGpuDevice[src]
impl OptionFromWasmAbi for WebGpuDevice[src]
Auto Trait Implementations
impl !Send for WebGpuDevice
impl !Sync for WebGpuDevice
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> From for T[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi, [src]
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi