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 RenderContext§sources: HashMap<u64, ImageSource>§resources: ResourcesTrait Implementations§
Source§impl Target for Cpu<'_>
impl Target for Cpu<'_>
fn draw(&mut self, draw: &Draw, t: Affine)
fn push_clip(&mut self, path: &BezPath, t: Affine)
Source§fn push_layer(
&mut self,
blend: Blend,
bounds: Option<&BezPath>,
t: Affine,
area: KRect,
)
fn push_layer( &mut self, blend: Blend, bounds: Option<&BezPath>, t: Affine, area: KRect, )
A layer with
blend, bounded by bounds under t — or, when
None, by area, the whole of what is painted, in the target’s
pixels.fn pop(&mut self)
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