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