pub enum RenderOutcome {
Presented,
Skipped,
NeedsReconfigure,
DeviceLost,
}Expand description
What happened when Renderer::render tried to present a frame.
Variants§
Presented
The frame was drawn and presented.
Skipped
The frame was skipped (occlusion, timeout, or a validation error); the caller should just try again on the next redraw.
NeedsReconfigure
The surface is lost or outdated: call Renderer::reconfigure before retrying.
DeviceLost
The GPU device is gone — a driver reset, a GPU removed or restarted: this renderer can draw nothing more, and a new one is to be made (milestone 686, #217).
Auto Trait Implementations§
impl Freeze for RenderOutcome
impl RefUnwindSafe for RenderOutcome
impl Send for RenderOutcome
impl Sync for RenderOutcome
impl Unpin for RenderOutcome
impl UnsafeUnpin for RenderOutcome
impl UnwindSafe for RenderOutcome
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