wgpu::dispatch

Trait InstanceInterface

source
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<'_, '_>,
    ) -> Pin<Box<dyn RequestAdapterFuture>>;
    fn poll_all_devices(&self, force_wait: bool) -> bool;
    fn wgsl_language_features(&self) -> WgslLanguageFeatures;
}

Required Methods§

source

fn new(desc: &InstanceDescriptor) -> Self
where Self: Sized,

source

unsafe fn create_surface( &self, target: SurfaceTargetUnsafe, ) -> Result<DispatchSurface, CreateSurfaceError>

source

fn request_adapter( &self, options: &RequestAdapterOptions<'_, '_>, ) -> Pin<Box<dyn RequestAdapterFuture>>

source

fn poll_all_devices(&self, force_wait: bool) -> bool

source

fn wgsl_language_features(&self) -> WgslLanguageFeatures

Available on crate feature wgsl only.

Implementors§

source§

impl InstanceInterface for ContextWgpuCore

Available on wgpu_core only.