pub trait GPUAdapterMethods {
    // 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>;
}

Required Methods§

source

fn Features(&self) -> Root<Dom<GPUSupportedFeatures>>

source

fn Limits(&self) -> Root<Dom<GPUSupportedLimits>>

source

fn IsFallbackAdapter(&self) -> bool

source

fn RequestDevice( &self, descriptor: &GPUDeviceDescriptor, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Rc<Promise>

source

fn RequestAdapterInfo( &self, unmaskHints: Vec<DOMString>, _comp: InRealm<'_>, _can_gc: CanGc, ) -> Rc<Promise>

Implementors§