pub struct AtlasPageBuffers {
pub instances: Vec<GpuStrip>,
pub alphas: Vec<u8>,
}Expand description
One page’s lowered replay: the instances to draw and the coverage they index.
Reused across pages and across frames rather than allocated per page — the two vectors are the only heap a replay costs once they have grown, which is the point of handing them to the lowering closure instead of taking a fresh pair back from it.
The two are kept together because a strip instance’s alpha column is only
meaningful against the coverage buffer generated alongside it, the same
pairing crate::compile::CompiledFrame keeps for a frame.
Fields§
§instances: Vec<GpuStrip>The page’s strip instances, in the order they are drawn.
alphas: Vec<u8>The coverage bytes instances index.
Implementations§
Trait Implementations§
Source§impl Debug for AtlasPageBuffers
impl Debug for AtlasPageBuffers
Auto Trait Implementations§
impl Freeze for AtlasPageBuffers
impl RefUnwindSafe for AtlasPageBuffers
impl Send for AtlasPageBuffers
impl Sync for AtlasPageBuffers
impl Unpin for AtlasPageBuffers
impl UnsafeUnpin for AtlasPageBuffers
impl UnwindSafe for AtlasPageBuffers
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