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§
fn new(desc: &InstanceDescriptor) -> Selfwhere
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
Available on crate feature
wgsl
only.Implementors§
impl InstanceInterface for ContextWgpuCore
Available on
wgpu_core
only.