pub enum RenderNode {
Primitive(PrimitiveEntry),
DrawRun(DrawRunNode),
Layer(Box<LayerNode>),
}Variants§
Primitive(PrimitiveEntry)
DrawRun(DrawRunNode)
A whole draw command’s primitives as one node. A heavy canvas records
thousands of primitives per frame; wrapping each in its own
RenderNode made the graph rebuild move every one of them twice and
free seventeen thousand nodes per frame on a stress scene. The run
keeps the recorded vector intact — semantically it is exactly that
many consecutive Primitive draw entries with no per-primitive clip.
Layer(Box<LayerNode>)
Trait Implementations§
Source§impl Clone for RenderNode
impl Clone for RenderNode
Source§fn clone(&self) -> RenderNode
fn clone(&self) -> RenderNode
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 !RefUnwindSafe for RenderNode
impl !Send for RenderNode
impl !Sync for RenderNode
impl !UnwindSafe for RenderNode
impl Freeze for RenderNode
impl Unpin for RenderNode
impl UnsafeUnpin for RenderNode
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