pub struct BackdropDraw {
pub order: DrawOrder,
pub bounds: Bounds<ScaledPixels>,
pub content_mask: ContentMask<ScaledPixels>,
pub surface_bounds: Bounds<ScaledPixels>,
pub clip: ContentMask<ScaledPixels>,
pub corner_radii: Corners<ScaledPixels>,
pub radius: f32,
pub opacity: f32,
pub program: Arc<SceneShaderProgram>,
}Expand description
Retained scene description for an explicit framebuffer pass barrier.
Fields§
§order: DrawOrderScene ordering barrier.
bounds: Bounds<ScaledPixels>Sampling footprint, including the blur halo.
content_mask: ContentMask<ScaledPixels>Full viewport used to order the pass barrier.
surface_bounds: Bounds<ScaledPixels>Rectangle receiving the filtered pixels.
clip: ContentMask<ScaledPixels>Ancestor content clip.
corner_radii: Corners<ScaledPixels>Clamped surface corner radii in device pixels.
radius: f32Gaussian support radius in device pixels.
opacity: f32Filter strength, including element opacity.
program: Arc<SceneShaderProgram>Immutable shared filter program.
Implementations§
Source§impl BackdropDraw
impl BackdropDraw
Sourcepub fn plan(&self, viewport: Size<DevicePixels>) -> Result<BackdropPlan>
pub fn plan(&self, viewport: Size<DevicePixels>) -> Result<BackdropPlan>
Validate before recording GPU work. The working set is at most 18 MiB across four boundaries (excluding driver and in-flight retention).
Trait Implementations§
Source§impl Clone for BackdropDraw
impl Clone for BackdropDraw
Auto Trait Implementations§
impl Freeze for BackdropDraw
impl RefUnwindSafe for BackdropDraw
impl Send for BackdropDraw
impl Sync for BackdropDraw
impl Unpin for BackdropDraw
impl UnsafeUnpin for BackdropDraw
impl UnwindSafe for BackdropDraw
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more