pub struct PlannedIsolatedPass {Show 20 fields
pub id: OffscreenPassId,
pub source_layer_idx: usize,
pub content_bounds_px: Rect,
pub render_bounds_px: Rect,
pub content_origin_px: [f32; 2],
pub local_size_px: [u32; 2],
pub needs_stencil: bool,
pub clear_color: Color,
pub effects: IsolatedEffectChain,
pub composite: CompositeParams,
pub parent_id: Option<OffscreenPassId>,
pub child_pass_ids: Vec<OffscreenPassId>,
pub isolated_depth: u8,
pub composites_to_main: bool,
pub backdrop_blur_radius_px: f32,
pub backdrop_capture_rect_px: Option<Rect>,
pub needs_backdrop_capture: bool,
pub composite_blend_mode: BlendMode,
pub needs_blend_dst_capture: bool,
pub blend_capture_rect_px: Option<Rect>,
}Expand description
Full isolated pass descriptor produced by FrameRenderPlan::build_cpu.
Bounds and origins use physical pixels. local_size_px is the allocated
integer extent after snapping and budget clamping.
§Examples
use ailloli_ui_render_wgpu::PlannedIsolatedPass;
let _: usize = std::mem::size_of::<PlannedIsolatedPass>();Fields§
§id: OffscreenPassIdFrame-local pass identity.
source_layer_idx: usizeIndex of the source scene layer.
content_bounds_px: RectTight command bounds before effect inflation, in physical pixels.
render_bounds_px: RectAllocated and rendered bounds after effects and budget policy.
content_origin_px: [f32; 2]Physical origin subtracted when vertices are made pass-local.
local_size_px: [u32; 2]Offscreen allocation width and height in physical pixels.
needs_stencil: boolWhether rounded clipping requires a stencil attachment.
clear_color: ColorTransparent or opaque clear color used before drawing content.
effects: IsolatedEffectChainLinear effects executed before compositing.
composite: CompositeParamsDestination, opacity, and original blend contract.
parent_id: Option<OffscreenPassId>Parent offscreen pass (if nested).
child_pass_ids: Vec<OffscreenPassId>Child passes sampled into this pass before local content.
isolated_depth: u8Zero-based nesting depth; root isolated passes have depth zero.
composites_to_main: boolWhen true, composite into the main frame pass (root isolated only).
backdrop_blur_radius_px: f32Backdrop blur radius (physical px); root passes only in v1.
backdrop_capture_rect_px: Option<Rect>Region to copy from the main framebuffer before this pass (if backdrop active).
needs_backdrop_capture: boolWhether the main framebuffer must be copied before this pass executes.
composite_blend_mode: BlendModeEffective blend for main-pass composite (after budget downgrade).
needs_blend_dst_capture: boolWhether non-normal blending requires a destination snapshot.
blend_capture_rect_px: Option<Rect>Physical main-frame region copied for destination-aware blending.
Trait Implementations§
Source§impl Clone for PlannedIsolatedPass
impl Clone for PlannedIsolatedPass
Source§fn clone(&self) -> PlannedIsolatedPass
fn clone(&self) -> PlannedIsolatedPass
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for PlannedIsolatedPass
impl RefUnwindSafe for PlannedIsolatedPass
impl Send for PlannedIsolatedPass
impl Sync for PlannedIsolatedPass
impl Unpin for PlannedIsolatedPass
impl UnwindSafe for PlannedIsolatedPass
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
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>
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>
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