pub struct OpaqueBatchList {
pub pixel_area_threshold_for_new_batch: f32,
pub batches: Vec<PrimitiveBatch, FrameAllocator>,
pub current_batch_index: usize,
lookback_count: usize,
}Fields§
§pixel_area_threshold_for_new_batch: f32§batches: Vec<PrimitiveBatch, FrameAllocator>§current_batch_index: usize§lookback_count: usizeImplementations§
Source§impl OpaqueBatchList
impl OpaqueBatchList
fn new( pixel_area_threshold_for_new_batch: f32, lookback_count: usize, memory: &FrameMemory, ) -> Self
Sourcefn clear(&mut self)
fn clear(&mut self)
Clear all current batches in this list. This is typically used when a primitive is encountered that occludes all previous content in this batch list.
pub fn set_params_and_get_batch( &mut self, key: BatchKey, features: BatchFeatures, z_bounding_rect: &PictureRect, ) -> &mut Vec<PrimitiveInstanceData, FrameAllocator>
fn finalize(&mut self)
Auto Trait Implementations§
impl Freeze for OpaqueBatchList
impl RefUnwindSafe for OpaqueBatchList
impl Send for OpaqueBatchList
impl !Sync for OpaqueBatchList
impl Unpin for OpaqueBatchList
impl UnwindSafe for OpaqueBatchList
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> 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