Struct webrender::picture::PrimitiveDependencyInfo
source · struct PrimitiveDependencyInfo {
prim_uid: ItemUid,
prim_clip_box: PictureBox2D,
images: SmallVec<[ImageDependency; 8]>,
opacity_bindings: SmallVec<[Binding<f32>; 4]>,
color_binding: Option<Binding<ColorU>>,
clips: SmallVec<[ItemUid; 8]>,
spatial_nodes: SmallVec<[SpatialNodeIndex; 4]>,
}
Expand description
Information about the dependencies of a single primitive instance.
Fields§
§prim_uid: ItemUid
Unique content identifier of the primitive.
prim_clip_box: PictureBox2D
The (conservative) clipped area in picture space this primitive occupies.
images: SmallVec<[ImageDependency; 8]>
Image keys this primitive depends on.
opacity_bindings: SmallVec<[Binding<f32>; 4]>
Opacity bindings this primitive depends on.
color_binding: Option<Binding<ColorU>>
Color binding this primitive depends on.
clips: SmallVec<[ItemUid; 8]>
Clips that this primitive depends on.
spatial_nodes: SmallVec<[SpatialNodeIndex; 4]>
Spatial nodes references by the clip dependencies of this primitive.
Implementations§
source§impl PrimitiveDependencyInfo
impl PrimitiveDependencyInfo
sourcefn new(prim_uid: ItemUid, prim_clip_box: PictureBox2D) -> Self
fn new(prim_uid: ItemUid, prim_clip_box: PictureBox2D) -> Self
Construct dependency info for a new primitive.
Auto Trait Implementations§
impl Freeze for PrimitiveDependencyInfo
impl RefUnwindSafe for PrimitiveDependencyInfo
impl Send for PrimitiveDependencyInfo
impl Sync for PrimitiveDependencyInfo
impl Unpin for PrimitiveDependencyInfo
impl UnwindSafe for PrimitiveDependencyInfo
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