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:
Jonas Matser 2021-02-22 08:59:14 +00:00
parent 13b602ee3f
commit 72f2a7b581

View file

@ -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 {