pub struct LayerIsolation {
pub effect: Option<RenderEffect>,
pub blend_mode: BlendMode,
pub composite_alpha: f32,
}Expand description
What a layer needs to be composited from its own offscreen buffer.
Fields§
§effect: Option<RenderEffect>The render effect applied to the buffer, if any.
blend_mode: BlendModeHow the buffer blends onto its parent.
composite_alpha: f32Alpha applied when the buffer is composited, from 0.0 to 1.0. It is 1.0 for a layer that modulates alpha in its content instead.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayerIsolation
impl RefUnwindSafe for LayerIsolation
impl Send for LayerIsolation
impl Sync for LayerIsolation
impl Unpin for LayerIsolation
impl UnsafeUnpin for LayerIsolation
impl UnwindSafe for LayerIsolation
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