Struct webrender::batch::BrushBatchParameters
source · struct BrushBatchParameters {
batch_kind: BrushBatchKind,
prim_user_data: [i32; 4],
segment_data: SegmentDataKind,
}
Expand description
The parameters that are specific to a kind of brush, used by the common method to add a brush to batches.
Fields§
§batch_kind: BrushBatchKind
§prim_user_data: [i32; 4]
§segment_data: SegmentDataKind
Implementations§
source§impl BrushBatchParameters
impl BrushBatchParameters
sourcefn instanced(
batch_kind: BrushBatchKind,
prim_user_data: [i32; 4],
segment_data: SmallVec<[SegmentInstanceData; 8]>,
) -> Self
fn instanced( batch_kind: BrushBatchKind, prim_user_data: [i32; 4], segment_data: SmallVec<[SegmentInstanceData; 8]>, ) -> Self
This brush instance has a list of per-segment instance data.
This brush instance shares the per-segment data across all segments.
Auto Trait Implementations§
impl Freeze for BrushBatchParameters
impl RefUnwindSafe for BrushBatchParameters
impl Send for BrushBatchParameters
impl Sync for BrushBatchParameters
impl Unpin for BrushBatchParameters
impl UnwindSafe for BrushBatchParameters
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