Skip to main content

GpuHost

Trait GpuHost 

Source
pub trait GpuHost: Send + Sync {
    // Required method
    fn request_adapter(&self, options: AdapterOptions) -> AdapterFuture;
}

Required Methods§

Source

fn request_adapter(&self, options: AdapterOptions) -> AdapterFuture

A shared adapter must pair raw with the adapter used to create its shared context. A host controls feature/limit negotiation on that physical device before handing it to redjs.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§