pub struct SceneUpdates<'a> {
pub content: &'a [NodeId],
pub layers: &'a [NodeId],
pub moved: &'a [NodeId],
}Expand description
Describes scene nodes whose recorded content or layer properties changed.
Content updates may re-record a node’s draw commands. Layer updates change
graphics-layer properties while retaining those recordings. If a node
appears in both slices, content dirt takes precedence.
Layout, child structure, and draw-command changes belong in content.
use cranpose_render_common::SceneUpdates;
let updates = SceneUpdates {
content: &[1],
layers: &[2],
moved: &[3],
};
assert!(!updates.is_empty());Fields§
§content: &'a [NodeId]Nodes whose recorded draw content must be refreshed.
layers: &'a [NodeId]Nodes whose graphics-layer properties changed without content dirt.
moved: &'a [NodeId]Nodes that moved in their parent and kept their size: the scene moves what it drew for them unless another list names them too.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for SceneUpdates<'a>
impl<'a> Clone for SceneUpdates<'a>
impl<'a> Copy for SceneUpdates<'a>
Source§impl<'a> Debug for SceneUpdates<'a>
impl<'a> Debug for SceneUpdates<'a>
Auto Trait Implementations§
impl<'a> Freeze for SceneUpdates<'a>
impl<'a> RefUnwindSafe for SceneUpdates<'a>
impl<'a> Send for SceneUpdates<'a>
impl<'a> Sync for SceneUpdates<'a>
impl<'a> Unpin for SceneUpdates<'a>
impl<'a> UnsafeUnpin for SceneUpdates<'a>
impl<'a> UnwindSafe for SceneUpdates<'a>
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