pub struct PlannedLayer {
pub scissor: Option<Rect>,
pub clip_mode: ClipRenderMode,
pub stencil_ref: Option<u32>,
pub stencil_mask_range: Option<Range<u32>>,
pub clip_params_none: ClipParamsGpu,
pub clip_params_shape: Option<ClipParamsGpu>,
pub use_clip_alpha_for_content: bool,
pub batch_range: Range<usize>,
}Expand description
One scene layer’s GPU state snapshot inside the frame.
§Examples
use ailloli_ui_render_wgpu::{clip::ClipParamsGpu, ClipRenderMode, PlannedLayer};
let layer = PlannedLayer { scissor: None, clip_mode: ClipRenderMode::Scissor,
stencil_ref: None, stencil_mask_range: None,
clip_params_none: ClipParamsGpu::none(), clip_params_shape: None,
use_clip_alpha_for_content: false, batch_range: 0..0 };
assert!(layer.batch_range.is_empty());Fields§
§scissor: Option<Rect>Physical or local scissor rectangle, depending on plan scope.
clip_mode: ClipRenderModeEffective clip mode after stencil-capability downgrade.
stencil_ref: Option<u32>Nonzero stencil reference allocated for this layer, when applicable.
stencil_mask_range: Option<Range<u32>>Range into FrameRenderPlan::stencil_mask_arena.
clip_params_none: ClipParamsGpuInactive clip uniform always available to primitive batches.
clip_params_shape: Option<ClipParamsGpu>Primary rounded-shape uniform, if the layer has one.
use_clip_alpha_for_content: boolWhether content also evaluates clip alpha for shader masking or stencil AA.
batch_range: Range<usize>Range into FrameRenderPlan::batches.
Trait Implementations§
Source§impl Clone for PlannedLayer
impl Clone for PlannedLayer
Source§fn clone(&self) -> PlannedLayer
fn clone(&self) -> PlannedLayer
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 PlannedLayer
impl RefUnwindSafe for PlannedLayer
impl Send for PlannedLayer
impl Sync for PlannedLayer
impl Unpin for PlannedLayer
impl UnwindSafe for PlannedLayer
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