@@ -6,8 +6,6 @@ use graph_craft::proto::{NodeConstructor, TypeErasedBox};
66use graphene_std:: Artboard ;
77use graphene_std:: Context ;
88use graphene_std:: Graphic ;
9- #[ cfg( feature = "gpu" ) ]
10- use graphene_std:: any:: DowncastBothNode ;
119use graphene_std:: any:: DynAnyNode ;
1210use graphene_std:: application_io:: { ImageTexture , SurfaceFrame } ;
1311use graphene_std:: brush:: brush_cache:: BrushCache ;
@@ -234,28 +232,6 @@ fn node_registry() -> HashMap<ProtoNodeIdentifier, HashMap<NodeIOTypes, NodeCons
234232 async_node!( graphene_core:: memo:: MemoNode <_, _>, input: Context , fn_params: [ Context => path_bool_nodes:: BooleanOperation ] ) ,
235233 async_node!( graphene_core:: memo:: MemoNode <_, _>, input: Context , fn_params: [ Context => graphene_std:: text:: TextAlign ] ) ,
236234 async_node!( graphene_core:: memo:: MemoNode <_, _>, input: Context , fn_params: [ Context => RenderIntermediate ] ) ,
237- // =======================
238- // CREATE GPU SURFACE NODE
239- // =======================
240- #[ cfg( feature = "gpu" ) ]
241- (
242- ProtoNodeIdentifier :: new( stringify!( wgpu_executor:: CreateGpuSurfaceNode <_>) ) ,
243- |args| {
244- Box :: pin( async move {
245- let editor_api: DowncastBothNode <Context , & WasmEditorApi > = DowncastBothNode :: new( args[ 0 ] . clone( ) ) ;
246- let node = <wgpu_executor:: CreateGpuSurfaceNode <_>>:: new( editor_api) ;
247- let any: DynAnyNode <Context , _, _> = DynAnyNode :: new( node) ;
248- Box :: new( any) as TypeErasedBox
249- } )
250- } ,
251- {
252- let node = <wgpu_executor:: CreateGpuSurfaceNode <_>>:: new( graphene_std:: any:: PanicNode :: <Context , dyn_any:: DynFuture <' static , & WasmEditorApi >>:: new( ) ) ;
253- let params = vec![ fn_type_fut!( Context , & WasmEditorApi ) ] ;
254- let mut node_io = <wgpu_executor:: CreateGpuSurfaceNode <_> as NodeIO <' _, Context >>:: to_async_node_io( & node, params) ;
255- node_io. call_argument = concrete!( <Context as StaticType >:: Static ) ;
256- node_io
257- } ,
258- ) ,
259235 ] ;
260236 // =============
261237 // CONVERT NODES
0 commit comments