pub struct WasdkInstance { /* private fields */ }Expand description
The instance behind a wgpu::Instance from this backend:
instance.as_custom::<WasdkInstance>().
Implementations§
Trait Implementations§
Source§impl Debug for WasdkInstance
impl Debug for WasdkInstance
Source§impl InstanceInterface for WasdkInstance
impl InstanceInterface for WasdkInstance
Source§unsafe fn create_surface(
&self,
target: SurfaceTargetUnsafe,
) -> Result<DispatchSurface, CreateSurfaceError>
unsafe fn create_surface( &self, target: SurfaceTargetUnsafe, ) -> Result<DispatchSurface, CreateSurfaceError>
A surface on the view a SharedView’s window handle points at, holding the view from
here on; any other handle is a gap (surface).
fn new(desc: InstanceDescriptor) -> Self
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
fn enumerate_adapters( &self, backends: Backends, ) -> Pin<Box<dyn EnumerateAdapterFuture>>
Auto Trait Implementations§
impl Forget for WasdkInstance
impl Freeze for WasdkInstance
impl RefUnwindSafe for WasdkInstance
impl Send for WasdkInstance
impl Sync for WasdkInstance
impl Unpin for WasdkInstance
impl UnsafeUnpin for WasdkInstance
impl UnwindSafe for WasdkInstance
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more