pub struct CulledWindings {
pub partial: Vec<[f32; 4]>,
pub coarse: Vec<i16>,
pub active: Vec<u32>,
pub culled: bool,
height: u16,
}Expand description
A logical grouping of arrays used for culled tile processing,
Fields§
§partial: Vec<[f32; 4]>Fractional winding coverage for each individual scanline in a row.
coarse: Vec<i16>Accumulated integer winding deltas for each tile row.
active: Vec<u32>Bitmask tracking which rows contain active geometry or winding data.
culled: boolFlag indicating if any geometry was early-culled outside the viewport.
height: u16Implementations§
Source§impl CulledWindings
impl CulledWindings
Sourceconst WORD_SHIFT: usize = 5
const WORD_SHIFT: usize = 5
Bit shift equivalent to dividing by WORD_BITS (2^5 = 32).
Sourcepub fn new(height: u16) -> Self
pub fn new(height: u16) -> Self
Constructor chained to Tiles’ constructor and matching its initial viewport height.
fn sizes(height: u16) -> (usize, usize)
Sourcepub fn mark_row_active(&mut self, row_idx: usize)
pub fn mark_row_active(&mut self, row_idx: usize)
Marks if a row was culled early for faster traversal in strip generation.
Sourcepub fn mark_row_range_active(&mut self, start_row: usize, end_row: usize)
pub fn mark_row_range_active(&mut self, start_row: usize, end_row: usize)
Bulk marks a range of rows as active [start_row, end_row).
Trait Implementations§
Source§impl Clone for CulledWindings
impl Clone for CulledWindings
Source§fn clone(&self) -> CulledWindings
fn clone(&self) -> CulledWindings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CulledWindings
impl Debug for CulledWindings
Source§impl Default for CulledWindings
impl Default for CulledWindings
Source§fn default() -> CulledWindings
fn default() -> CulledWindings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CulledWindings
impl RefUnwindSafe for CulledWindings
impl Send for CulledWindings
impl Sync for CulledWindings
impl Unpin for CulledWindings
impl UnsafeUnpin for CulledWindings
impl UnwindSafe for CulledWindings
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