pub(crate) trait GPUMethods<D>where
D: DomTypes,{
// Required methods
fn RequestAdapter(
&self,
realm: &mut CurrentRealm<'_>,
options: &GPURequestAdapterOptions,
) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot;
fn GetPreferredCanvasFormat(&self) -> GPUTextureFormat;
fn WgslLanguageFeatures(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::WGSLLanguageFeatures>>;
}Required Methods§
fn RequestAdapter( &self, realm: &mut CurrentRealm<'_>, options: &GPURequestAdapterOptions, ) -> <<D as DomTypes>::Promise as PromiseHelpers<D>>::StackRoot
fn GetPreferredCanvasFormat(&self) -> GPUTextureFormat
fn WgslLanguageFeatures( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::WGSLLanguageFeatures>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".