pub struct Cpu<'a> {
pub ctx: &'a mut RenderContext,
pub sources: HashMap<u64, ImageSource>,
pub resources: Resources,
}Expand description
The vello_cpu backend of crate::display::paint.
Fields§
§ctx: &'a mut RenderContextThe context it draws into.
sources: HashMap<u64, ImageSource>Each image painted so far, by its blob’s id, so an image drawn twice is converted once.
resources: ResourcesWhat vello_cpu keeps while it draws glyphs and renders: its caches.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Cpu<'a>
impl<'a> !Sync for Cpu<'a>
impl<'a> !UnwindSafe for Cpu<'a>
impl<'a> Freeze for Cpu<'a>
impl<'a> Send for Cpu<'a>
impl<'a> Unpin for Cpu<'a>
impl<'a> UnsafeUnpin for Cpu<'a>
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