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