Bundle Graphite using Tauri (#873)

* Setup tauri component for graphite editor

Integrate graphite into tauri app

Split interpreted-executor out of graph-craft

* Add gpu execution node

* General Cleanup
This commit is contained in:
TrueDoctor
2022-12-11 12:46:55 -08:00
committed by Keavon Chambers
parent a2043bcb7c
commit f1b7abede7
109 changed files with 5661 additions and 544 deletions
+4 -1
View File
@@ -9,7 +9,10 @@ pub struct CacheNode<CachedNode: Node<I>, I> {
impl<'n, CashedNode: Node<I> + Copy, I> Node<I> for &'n CacheNode<CashedNode, I> {
type Output = &'n CashedNode::Output;
fn eval(self, input: I) -> Self::Output {
self.cache.get_or_init(|| self.node.eval(input))
self.cache.get_or_init(|| {
trace!("Creating new cache node");
self.node.eval(input)
})
}
}