pub struct RenderPlugin<B: Backend> { /* private fields */ }Expand description
Plugin that manages the per-frame acquire / present cycle.
Adds a CurrentFrame<B> resource and two systems:
PreRender: acquires a frame from the backend.PostRender: presents the completed frame.
Rendering systems should check CurrentFrame::is_active before issuing
draw calls, as the frame may be absent when the backend is not yet ready or
a transient acquire error occurs.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for RenderPlugin<B>
impl<B> RefUnwindSafe for RenderPlugin<B>where
B: RefUnwindSafe,
impl<B> Send for RenderPlugin<B>
impl<B> Sync for RenderPlugin<B>
impl<B> Unpin for RenderPlugin<B>where
B: Unpin,
impl<B> UnsafeUnpin for RenderPlugin<B>
impl<B> UnwindSafe for RenderPlugin<B>where
B: 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