Add getter for RenderGraph Node uuid (#1499)
`RenderGraph` errors only give the `Uuid` of the node. So for my graphviz dot based visualization of the `RenderGraph` I really wanted to show it to the user. I think it makes sense to have it accessible for at least debugging purposes.
This commit is contained in:
parent
13b602ee3f
commit
72f2a7b581
@ -13,6 +13,10 @@ impl NodeId {
|
||||
pub fn new() -> Self {
|
||||
NodeId(Uuid::new_v4())
|
||||
}
|
||||
|
||||
pub fn uuid(&self) -> &Uuid {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
|
||||
pub trait Node: Downcast + Send + Sync + 'static {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user