pub struct RenderGraph {
pub root: LayerNode,
pub update: u64,
}Expand description
The scene as a tree of layers that a renderer draws.
Fields§
§root: LayerNodeThe top layer; every other node of the graph is beneath it.
update: u64How many scene updates the graph took: the number of the latest.
Implementations§
Source§impl RenderGraph
impl RenderGraph
Sourcepub fn node_count(&self) -> usize
pub fn node_count(&self) -> usize
Number of nodes in the graph. A layer counts once and each primitive of a draw run counts on its own.
Sourcepub fn heap_bytes(&self) -> usize
pub fn heap_bytes(&self) -> usize
Estimated heap memory held beneath the root layer, in bytes, for memory reports.
Sourcepub fn collect_retained_visual_observation_nodes(
&self,
nodes: &mut HashSet<NodeId>,
)
pub fn collect_retained_visual_observation_nodes( &self, nodes: &mut HashSet<NodeId>, )
Replaces the set with the graph’s visual observation owners, retaining its capacity.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RenderGraph
impl !RefUnwindSafe for RenderGraph
impl !Send for RenderGraph
impl !Sync for RenderGraph
impl !UnwindSafe for RenderGraph
impl Unpin for RenderGraph
impl UnsafeUnpin for RenderGraph
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