pub struct GraphicsPlugin<B, W> { /* private fields */ }Expand description
Plugin that initialises the GPU backend asynchronously and handles window resize events.
It calls Backend::init with the window handle and a one-shot sender
once (see [setup_gpu_async]), then polls the receiver every
PreRender tick until the backend arrives. Once
available it also forwards window size changes to Backend::resize.
Implementations§
Source§impl<B: Backend, W: PresentableWindow> GraphicsPlugin<B, W>where
W::Handle: GPUSurfaceHandle,
impl<B: Backend, W: PresentableWindow> GraphicsPlugin<B, W>where
W::Handle: GPUSurfaceHandle,
Trait Implementations§
Source§impl<B: Backend, W: PresentableWindow> Plugin for GraphicsPlugin<B, W>where
W::Handle: GPUSurfaceHandle,
impl<B: Backend, W: PresentableWindow> Plugin for GraphicsPlugin<B, W>where
W::Handle: GPUSurfaceHandle,
Auto Trait Implementations§
impl<B, W> Freeze for GraphicsPlugin<B, W>
impl<B, W> RefUnwindSafe for GraphicsPlugin<B, W>where
B: RefUnwindSafe,
W: RefUnwindSafe,
impl<B, W> Send for GraphicsPlugin<B, W>
impl<B, W> Sync for GraphicsPlugin<B, W>
impl<B, W> Unpin for GraphicsPlugin<B, W>
impl<B, W> UnsafeUnpin for GraphicsPlugin<B, W>
impl<B, W> UnwindSafe for GraphicsPlugin<B, W>where
B: UnwindSafe,
W: UnwindSafe,
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