pub struct CompositionScratch { /* private fields */ }Expand description
P2:可跨帧复用的 composition scratch。
by_id / memo / visiting 在 resolve 时 clear 后复用容量,避免每帧分配
三张表;GPU Renderer 持有一份,软件光栅器可按需使用。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for CompositionScratch
impl Freeze for CompositionScratchwhere
*const u8 is !null: Freeze,
PhantomData<(LayerId, usize)>: Freeze,
PhantomData<(LayerId, LayerComposition)>: Freeze,
PhantomData<(LayerId, ())>: Freeze,
impl Move for CompositionScratch
impl RefUnwindSafe for CompositionScratch
impl Send for CompositionScratch
impl Sync for CompositionScratch
impl Unpin for CompositionScratch
impl UnsafeUnpin for CompositionScratchwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(LayerId, usize)>: UnsafeUnpin,
PhantomData<(LayerId, LayerComposition)>: UnsafeUnpin,
PhantomData<(LayerId, ())>: UnsafeUnpin,
impl UnwindSafe for CompositionScratchwhere
HashMap<LayerId, usize>: UnwindSafe,
HashMap<LayerId, LayerComposition>: UnwindSafe,
NonNull<u8>: UnwindSafe,
NonZero<u32>: UnwindSafe,
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