pub struct Composite {
pub layer: u32,
pub parity: PageParity,
pub bounds: RectU16,
pub opacity: f32,
pub retained: Option<RetainedSource>,
}Expand description
Fields§
§layer: u32The layer being composited, indexed into
CommandRecorder::layers.
parity: PageParityThe group holding the finished page.
bounds: RectU16Where the layer lands in the round’s target, in that target’s own coordinates.
opacity: f32Constant alpha applied while compositing, strictly between 0 and 1 for a pooled page; a retained page’s is the bracket’s own alpha, which may be 1.
retained: Option<RetainedSource>The retained page this composite samples instead of a pooled one, or
None for a pooled page. When set, parity names no
page and nothing is released for it.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Composite
Auto Trait Implementations§
impl Freeze for Composite
impl RefUnwindSafe for Composite
impl Send for Composite
impl Sync for Composite
impl Unpin for Composite
impl UnsafeUnpin for Composite
impl UnwindSafe for Composite
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