Skip to main content

WebGPUGlobalTrait

Trait WebGPUGlobalTrait 

Source
pub trait WebGPUGlobalTrait<D: DomTypes>: Sized + DomObject {
    // Required methods
    fn global_wgpu_id_hub(&self) -> Arc<IdentityHub> ⓘ;
    fn queue_webgpu_task_source(&self, task: impl TaskOnce + 'static);
    fn add_webgpu_device(&self, device: &GPUDevice<D>);
}

Required Methods§

Source

fn global_wgpu_id_hub(&self) -> Arc<IdentityHub> ⓘ

Source

fn queue_webgpu_task_source(&self, task: impl TaskOnce + 'static)

Source

fn add_webgpu_device(&self, device: &GPUDevice<D>)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§