Skip to main content

InstanceInterface

Trait InstanceInterface 

pub trait InstanceInterface: CommonTraits {
    // Required methods
    fn new(desc: InstanceDescriptor) -> Self
       where Self: Sized;
    unsafe fn create_surface(
        &self,
        target: SurfaceTargetUnsafe,
    ) -> Result<DispatchSurface, CreateSurfaceError>;
    fn request_adapter(
        &self,
        options: &RequestAdapterOptions<&Surface<'_>>,
    ) -> Pin<Box<dyn RequestAdapterFuture<Output = Result<DispatchAdapter, RequestAdapterError>>>>;
    fn poll_all_devices(&self, force_wait: bool) -> bool;
    fn wgsl_language_features(&self) -> WgslLanguageFeatures;
    fn enumerate_adapters(
        &self,
        backends: Backends,
    ) -> Pin<Box<dyn EnumerateAdapterFuture<Output = Vec<DispatchAdapter>>>>;
}

Required Methods§

Implementors§