Trait script::dom::bindings::codegen::Bindings::WebGPUBinding::GPUAdapter_Binding::GPUAdapterMethods
source · pub trait GPUAdapterMethods<D: DomTypes> {
// Required methods
fn Features(&self) -> Root<Dom<GPUSupportedFeatures>>;
fn Limits(&self) -> Root<Dom<GPUSupportedLimits>>;
fn IsFallbackAdapter(&self) -> bool;
fn RequestDevice(
&self,
descriptor: &GPUDeviceDescriptor,
_comp: InRealm<'_>,
_can_gc: CanGc,
) -> Rc<Promise>;
fn RequestAdapterInfo(
&self,
unmaskHints: Vec<DOMString>,
_comp: InRealm<'_>,
_can_gc: CanGc,
) -> Rc<Promise>;
}