pub struct Target {
pub scene_index: usize,
pub display: DisplayParams,
pub force_composited: bool,
}Expand description
Where one mirrored layer lands on one scene.
Fields§
§scene_index: usizeWhich scene in the set, by index.
display: DisplayParamsHow to display it there.
Per target, not per layer: two outputs rarely share a resolution, and mirroring at one geometry would letterbox or crop the other.
force_composited: boolForce this copy through composition rather than onto a plane.
The copy is blended from the shared source’s pixels, read through
with_mapping, so the
source must offer a CPU view.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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