Skip to main content

GPUMethods

pub trait GPUMethods<D: DomTypes> {
    // Required methods
    fn RequestAdapter(
        &self,
        realm: &mut CurrentRealm<'_>,
        options: &GPURequestAdapterOptions,
    ) -> <D::Promise as PromiseHelpers<D>>::StackRoot;
    fn GetPreferredCanvasFormat(&self) -> GPUTextureFormat;
    fn WgslLanguageFeatures(
        &self,
        cx: &mut JSContext,
    ) -> DomRoot<D::WGSLLanguageFeatures>;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§