pub enum FrameTarget {
Window(Arc<dyn RenderTarget>),
Offscreen {
width: u32,
height: u32,
},
}Expand description
Where a Renderer puts its frames.
Variants§
Window(Arc<dyn RenderTarget>)
An OS window: each frame is presented on screen.
Offscreen
An image of width x height physical pixels that never reaches a
screen. Headless runs, screenshots, and tests read it back through
crate::render_world::SurfaceCapture.
Trait Implementations§
Source§impl Clone for FrameTarget
impl Clone for FrameTarget
Source§fn clone(&self) -> FrameTarget
fn clone(&self) -> FrameTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FrameTarget
impl !RefUnwindSafe for FrameTarget
impl Send for FrameTarget
impl Sync for FrameTarget
impl Unpin for FrameTarget
impl UnsafeUnpin for FrameTarget
impl !UnwindSafe for FrameTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.