pub struct Backdrop {
pub sigma: f32,
pub shared_key: Option<u64>,
}Expand description
Backdrop describes what a backdrop save layer samples from the scene
beneath it.
Today that is a gaussian blur. Further seed-only stages (a color matrix for iOS glass saturation) join as fields here, never as effects on the layer paint — a paint effect would filter the children too.
Fields§
§sigma: f32Gaussian σ in local units at record; replay scales it into device px. σ ≤ 0 records a plain save layer (nothing to blur — the scene already shows through).
Tiles sharing a key reuse the FIRST tile’s blur — and see the scene as of that tile. Use one key only for tiles over the same background.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Backdrop
impl RefUnwindSafe for Backdrop
impl Send for Backdrop
impl Sync for Backdrop
impl Unpin for Backdrop
impl UnsafeUnpin for Backdrop
impl UnwindSafe for Backdrop
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