Struct webrender::gpu_types::BrushInstance
source · pub struct BrushInstance {
pub prim_header_index: PrimitiveHeaderIndex,
pub clip_task_address: RenderTaskAddress,
pub segment_index: i32,
pub edge_flags: EdgeAaSegmentMask,
pub brush_flags: BrushFlags,
pub resource_address: i32,
}
Expand description
Convenience structure to encode into PrimitiveInstanceData.
Fields§
§prim_header_index: PrimitiveHeaderIndex
§clip_task_address: RenderTaskAddress
§segment_index: i32
§edge_flags: EdgeAaSegmentMask
§brush_flags: BrushFlags
§resource_address: i32
Trait Implementations§
source§impl From<BrushInstance> for PrimitiveInstanceData
impl From<BrushInstance> for PrimitiveInstanceData
source§fn from(instance: BrushInstance) -> Self
fn from(instance: BrushInstance) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BrushInstance
impl RefUnwindSafe for BrushInstance
impl Send for BrushInstance
impl Sync for BrushInstance
impl Unpin for BrushInstance
impl UnwindSafe for BrushInstance
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