pub struct LayerPlan {Show 13 fields
pub rects: usize,
pub rrects: usize,
pub borders: usize,
pub shadows: usize,
pub ring_progresses: usize,
pub polylines: usize,
pub texts: usize,
pub images: usize,
pub has_clip: bool,
pub has_scissor: bool,
pub rounded_masks: usize,
pub has_window_root_clip: bool,
pub clip_mode: ClipRenderMode,
}Expand description
Command counts and clip mode for one render layer.
All counts are exact usize counts from the layer’s command slice. Boolean
fields report whether the corresponding clip facility participates.
§Examples
use ailloli_ui_render_wgpu::{ClipRenderMode, LayerPlan};
let plan = LayerPlan {
rects: 1, rrects: 0, borders: 0, shadows: 0, ring_progresses: 0,
polylines: 0, texts: 0, images: 0, has_clip: false,
has_scissor: false, rounded_masks: 0, has_window_root_clip: false,
clip_mode: ClipRenderMode::Scissor,
};
assert_eq!(plan.rects, 1);Fields§
§rects: usizeRectangle command count.
rrects: usizeRounded-rectangle command count.
borders: usizeRounded-border command count.
shadows: usizeBox-shadow command count.
ring_progresses: usizeRing-progress command count.
polylines: usizePolyline command count.
texts: usizeText command count.
images: usizeImage command count.
has_clip: boolWhether the logical clip stack is nonempty.
has_scissor: boolWhether the resolved plan has a rectangular scissor.
rounded_masks: usizeNumber of rounded masks in the resolved clip plan.
has_window_root_clip: boolWhether a clip entry is marked as the window-root clip.
clip_mode: ClipRenderModeSelected GPU clip implementation.
Trait Implementations§
impl Copy for LayerPlan
impl Eq for LayerPlan
impl StructuralPartialEq for LayerPlan
Auto Trait Implementations§
impl Freeze for LayerPlan
impl RefUnwindSafe for LayerPlan
impl Send for LayerPlan
impl Sync for LayerPlan
impl Unpin for LayerPlan
impl UnwindSafe for LayerPlan
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§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