pub struct CpuRenderer { /* private fields */ }Expand description
tiny-skia backend. Deterministic: same scene, same bytes.
Implementations§
Source§impl CpuRenderer
impl CpuRenderer
Trait Implementations§
Source§impl Default for CpuRenderer
impl Default for CpuRenderer
Source§impl Renderer for CpuRenderer
impl Renderer for CpuRenderer
Source§fn render(&mut self, graph: &SceneGraph, options: &RenderOptions) -> Image
fn render(&mut self, graph: &SceneGraph, options: &RenderOptions) -> Image
Draws the current state of
graph and returns the picture. Read moreSource§fn render_list(
&mut self,
graph: &SceneGraph,
items: &[DrawItem],
options: &RenderOptions,
) -> Image
fn render_list( &mut self, graph: &SceneGraph, items: &[DrawItem], options: &RenderOptions, ) -> Image
Draws
items, a part of graph’s draw list, and returns the pixels
without presenting. graph gives the scene size. Read moreSource§fn render_pixels(
&mut self,
graph: &SceneGraph,
options: &RenderOptions,
) -> Image
fn render_pixels( &mut self, graph: &SceneGraph, options: &RenderOptions, ) -> Image
Draws
graph and returns the pixels, without presenting. Read moreSource§fn present_image(&mut self, _image: &Image)
fn present_image(&mut self, _image: &Image)
Shows a frame that was blended from pixels. The default does nothing,
because
render already showed the frame.Auto Trait Implementations§
impl Freeze for CpuRenderer
impl RefUnwindSafe for CpuRenderer
impl Send for CpuRenderer
impl Sync for CpuRenderer
impl Unpin for CpuRenderer
impl UnsafeUnpin for CpuRenderer
impl UnwindSafe for CpuRenderer
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