pub struct FramePlan {
pub batches: Vec<BackdropBatch>,
}Expand description
What one painted frame’s backdrop layers cost.
batches[i] runs after segment i and before segment i + 1, so a frame
with n batches renders n + 1 segments.
Fields§
§batches: Vec<BackdropBatch>Implementations§
Source§impl FramePlan
impl FramePlan
Sourcepub fn render_passes(&self) -> u32
pub fn render_passes(&self) -> u32
Scene renders this frame costs. Always at least one.
The number the six-panel anti-regression asserts on: it must be 2 for a page of non-overlapping glass, not one per panel.
Sourcepub fn blur_passes(&self) -> u32
pub fn blur_passes(&self) -> u32
Filtered regions produced this frame, across every batch.
Distinct from render_passes and it is worth
keeping them apart: batching removes render passes, it does not remove
blurs. Six panels in one batch is 2 render passes and still 6 blurs.
Removing those is what caching them across frames is for, and this is
the number that will have to reach zero on a still frame.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FramePlan
impl RefUnwindSafe for FramePlan
impl Send for FramePlan
impl Sync for FramePlan
impl Unpin for FramePlan
impl UnsafeUnpin for FramePlan
impl UnwindSafe for FramePlan
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