Restructure node graph project layout

This commit is contained in:
Dennis
2022-04-02 14:50:00 +02:00
committed by Keavon Chambers
parent 850ca7c73a
commit fef173d3fe
19 changed files with 1958 additions and 598 deletions

View File

@@ -0,0 +1,13 @@
use graphene_core::{Exec, Node};
use graphene_std::*;
fn main() {
let int = value::IntNode::<32>;
let _add: u32 = ops::AddNode::<u32>::default().eval((int.exec(), int.exec()));
let fnode = generic::FnNode::new(|(a, b): &(i32, i32)| a - b);
//let sub = fnode.any(&("a", 2));
let cache = memo::CacheNode::new(&fnode);
let cached_result = cache.eval(&(2, 3));
println!("{}", cached_result)
}