Struct webrender::batch::AlphaBatchList
source · pub struct AlphaBatchList {
pub batches: Vec<PrimitiveBatch>,
pub batch_rects: Vec<BatchRects>,
current_batch_index: usize,
current_z_id: ZBufferId,
break_advanced_blend_batches: bool,
}
Fields§
§batches: Vec<PrimitiveBatch>
§batch_rects: Vec<BatchRects>
§current_batch_index: usize
§current_z_id: ZBufferId
§break_advanced_blend_batches: bool
Implementations§
source§impl AlphaBatchList
impl AlphaBatchList
fn new(break_advanced_blend_batches: bool, preallocate: usize) -> 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, z_id: ZBufferId, ) -> &mut Vec<PrimitiveInstanceData>
Auto Trait Implementations§
impl Freeze for AlphaBatchList
impl RefUnwindSafe for AlphaBatchList
impl Send for AlphaBatchList
impl Sync for AlphaBatchList
impl Unpin for AlphaBatchList
impl UnwindSafe for AlphaBatchList
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