pub struct BackdropCapturePoint {
pub pass_id: OffscreenPassId,
pub source_layer_idx: usize,
pub capture_rect_px: Rect,
pub split_planned_layer_idx: usize,
}Expand description
When to snapshot the swapchain for backdrop blur (after split_planned_layer_idx layers).
§Examples
use ailloli_ui_core::Rect;
use ailloli_ui_render_wgpu::isolated_plan::BackdropCapturePoint;
use ailloli_ui_render_wgpu::OffscreenPassId;
let point = BackdropCapturePoint {
pass_id: OffscreenPassId(2), source_layer_idx: 3,
capture_rect_px: Rect::new(0.0, 0.0, 10.0, 10.0),
split_planned_layer_idx: 4,
};
assert_eq!(point.split_planned_layer_idx, 4);Fields§
§pass_id: OffscreenPassIdIsolated pass that consumes the snapshot.
source_layer_idx: usizeOriginal scene-layer index of that pass.
capture_rect_px: RectRegion copied from the main framebuffer, in physical pixels.
split_planned_layer_idx: usizePlanned-layer index after which the copy occurs.
Trait Implementations§
Source§impl Clone for BackdropCapturePoint
impl Clone for BackdropCapturePoint
Source§fn clone(&self) -> BackdropCapturePoint
fn clone(&self) -> BackdropCapturePoint
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BackdropCapturePoint
impl RefUnwindSafe for BackdropCapturePoint
impl Send for BackdropCapturePoint
impl Sync for BackdropCapturePoint
impl Unpin for BackdropCapturePoint
impl UnwindSafe for BackdropCapturePoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.
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