pub struct PaintPass;Expand description
Stateless scene-to-display-list compiler supporting z-order sorting, scroll clipping, and frustum culling.
Implementations§
Source§impl PaintPass
Scene-to-display-list compilation pass.
impl PaintPass
Scene-to-display-list compilation pass.
Sourcepub fn build(
tree: &SceneTree,
viewport: Size,
scale_factor: f32,
clear_color: Color,
display_list: &mut DisplayList,
)
pub fn build( tree: &SceneTree, viewport: Size, scale_factor: f32, clear_color: Color, display_list: &mut DisplayList, )
Compiles tree into display_list, culling offscreen nodes and honoring z-index stacking.
§Arguments
&SceneTree- Laid-out scene tree.Size- Logical viewport size.f32- DPI scale factor.Color- Surface clear background color.&mut DisplayList- Output reusable display list.
Trait Implementations§
impl Copy for PaintPass
impl Eq for PaintPass
Source§impl Ord for PaintPass
impl Ord for PaintPass
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for PaintPass
impl PartialOrd for PaintPass
impl StructuralPartialEq for PaintPass
Auto Trait Implementations§
impl Forget for PaintPass
impl Freeze for PaintPass
impl Move for PaintPass
impl RefUnwindSafe for PaintPass
impl Send for PaintPass
impl Sync for PaintPass
impl Unpin for PaintPass
impl UnsafeUnpin for PaintPass
impl UnwindSafe for PaintPass
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