pub enum GraphRebuildReason {
RootLayerUnavailable,
DirtyLayerUnavailable,
UnmatchedDirtyNodes(usize),
}Expand description
Why a scoped scene update could not be applied, forcing the caller to throw the render graph away and build it again from the applier.
The reason has to travel with the outcome because the shell picks the scoped path from the shape of the dirty set, before this code runs, and logs that choice. A frame that chose the scoped path and then rebuilt the whole scene is the expensive case, and in the log it reads exactly like a cheap patch – so the fallback says so itself.
Variants§
The root was dirty and its replacement layer could not be built.
A dirty subtree’s replacement layer could not be built.
UnmatchedDirtyNodes(usize)
This many dirty nodes own no layer in the render graph, so the scoped
walk never reached them. A node enters the graph only as a LayerNode;
a dirty node that never produced one – or whose layer left the graph
this frame – cannot be patched in place.
Trait Implementations§
Source§impl Clone for GraphRebuildReason
impl Clone for GraphRebuildReason
Source§fn clone(&self) -> GraphRebuildReason
fn clone(&self) -> GraphRebuildReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more