@@ -13,20 +13,19 @@ use graphene_core::{fn_type_fut, future};
1313use graphene_std:: Context ;
1414use graphene_std:: GraphicElement ;
1515use graphene_std:: any:: { ComposeTypeErased , DowncastBothNode , DynAnyNode , IntoTypeErasedNode } ;
16- use graphene_std:: application_io:: ImageTexture ;
16+ use graphene_std:: application_io:: { ImageTexture , TextureFrameTable } ;
1717use graphene_std:: wasm_application_io:: * ;
1818use node_registry_macros:: { async_node, into_node} ;
1919use once_cell:: sync:: Lazy ;
2020use std:: collections:: HashMap ;
2121use std:: sync:: Arc ;
2222#[ cfg( feature = "gpu" ) ]
2323use wgpu_executor:: ShaderInputFrame ;
24- use wgpu_executor:: { WgpuSurface , WindowHandle } ;
24+ use wgpu_executor:: { WgpuExecutor , WgpuSurface , WindowHandle } ;
2525
2626// TODO: turn into hashmap
2727fn node_registry ( ) -> HashMap < ProtoNodeIdentifier , HashMap < NodeIOTypes , NodeConstructor > > {
2828 let node_types: Vec < ( ProtoNodeIdentifier , NodeConstructor , NodeIOTypes ) > = vec ! [
29- into_node!( from: f64 , to: f64 ) ,
3029 into_node!( from: f64 , to: f64 ) ,
3130 into_node!( from: u32 , to: f64 ) ,
3231 into_node!( from: u8 , to: u32 ) ,
@@ -113,6 +112,12 @@ fn node_registry() -> HashMap<ProtoNodeIdentifier, HashMap<NodeIOTypes, NodeCons
113112 #[ cfg( feature = "gpu" ) ]
114113 async_node!( graphene_core:: memo:: ImpureMemoNode <_, _, _>, input: Context , fn_params: [ Context => ShaderInputFrame ] ) ,
115114 #[ cfg( feature = "gpu" ) ]
115+ async_node!( graphene_core:: memo:: ImpureMemoNode <_, _, _>, input: Context , fn_params: [ Context => TextureFrameTable ] ) ,
116+ #[ cfg( feature = "gpu" ) ]
117+ async_node!( graphene_core:: memo:: MemoNode <_, _>, input: Context , fn_params: [ Context => TextureFrameTable ] ) ,
118+ #[ cfg( feature = "gpu" ) ]
119+ into_node!( from: & WasmEditorApi , to: & WgpuExecutor ) ,
120+ #[ cfg( feature = "gpu" ) ]
116121 (
117122 ProtoNodeIdentifier :: new( stringify!( wgpu_executor:: CreateGpuSurfaceNode <_>) ) ,
118123 |args| {
0 commit comments