Skip to main content

GPUMethods

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

Required Methods§

Implementors§