pub struct MaskWriter {
pub part_idx: usize,
pub rank: usize,
pub op_invert: bool,
pub is_clipping: bool,
pub threshold: f32,
pub texture_hash: u32,
pub geom: GeomKind,
}Expand description
One planned stencil writer for the current frame.
Fields§
§part_idx: usizePart index (into parts / draw_order / SoA).
rank: usizeRank in draw_order; drives the scope replay (pure = backward scope,
clipping = forward scope).
op_invert: boolStencil OP: false = increment, true = invert.
is_clipping: boolfalse = pure mask (pre-written, removed when the cursor passes its
rank); true = clipping (added when the cursor reaches its rank).
threshold: f32Cutout threshold (255 - mask)/255, or -1.0 for no cutout (textureless
pure masks — the whole quad writes coverage).
texture_hash: u32Cellmap texture for the cutout (0 = none → white fallback, no cutout).
geom: GeomKindGeometry to rasterise.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MaskWriter
impl RefUnwindSafe for MaskWriter
impl Send for MaskWriter
impl Sync for MaskWriter
impl Unpin for MaskWriter
impl UnsafeUnpin for MaskWriter
impl UnwindSafe for MaskWriter
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