@@ -26,21 +26,10 @@ pub fn wrap_network_in_scope(mut network: NodeNetwork, editor_api: Arc<WasmEdito
2626 // .document_node;
2727
2828 let render_node = DocumentNode {
29- inputs : vec ! [ NodeInput :: node( NodeId ( 0 ) , 0 ) , NodeInput :: node ( NodeId ( 2 ) , 0 ) ] ,
29+ inputs : vec ! [ NodeInput :: node( NodeId ( 0 ) , 0 ) ] ,
3030 implementation : DocumentNodeImplementation :: Network ( NodeNetwork {
31- exports : vec ! [ NodeInput :: node( NodeId ( 4 ) , 0 ) ] ,
31+ exports : vec ! [ NodeInput :: node( NodeId ( 2 ) , 0 ) ] ,
3232 nodes : [
33- DocumentNode {
34- inputs : vec ! [ NodeInput :: scope( "editor-api" ) ] ,
35- implementation : DocumentNodeImplementation :: ProtoNode ( ProtoNodeIdentifier :: new ( "wgpu_executor::CreateGpuSurfaceNode" ) ) ,
36- skip_deduplication : true ,
37- ..Default :: default ( )
38- } ,
39- DocumentNode {
40- inputs : vec ! [ NodeInput :: node( NodeId ( 0 ) , 0 ) ] ,
41- implementation : DocumentNodeImplementation :: ProtoNode ( graphene_core:: memo:: memo:: IDENTIFIER ) ,
42- ..Default :: default ( )
43- } ,
4433 DocumentNode {
4534 call_argument : concrete ! ( Context ) ,
4635 inputs : vec ! [ NodeInput :: import( core_types:: Type :: Fn ( Box :: new( concrete!( Context ) ) , Box :: new( generic!( T ) ) ) , 0 ) ] ,
@@ -54,7 +43,7 @@ pub fn wrap_network_in_scope(mut network: NodeNetwork, editor_api: Arc<WasmEdito
5443 // Keep this in sync with the protonode in valid_input_types
5544 DocumentNode {
5645 call_argument : concrete ! ( Context ) ,
57- inputs : vec ! [ NodeInput :: scope( "editor-api" ) , NodeInput :: node( NodeId ( 2 ) , 0 ) , NodeInput :: node ( NodeId ( 1 ) , 0 ) ] ,
46+ inputs : vec ! [ NodeInput :: scope( "editor-api" ) , NodeInput :: node( NodeId ( 0 ) , 0 ) ] ,
5847 implementation : DocumentNodeImplementation :: ProtoNode ( graphene_std:: render_node:: render:: IDENTIFIER ) ,
5948 context_features : graphene_std:: ContextDependencies {
6049 extract : ContextFeatures :: FOOTPRINT | ContextFeatures :: VARARGS ,
@@ -64,7 +53,7 @@ pub fn wrap_network_in_scope(mut network: NodeNetwork, editor_api: Arc<WasmEdito
6453 } ,
6554 DocumentNode {
6655 call_argument : concrete ! ( graphene_std:: application_io:: RenderConfig ) ,
67- inputs : vec ! [ NodeInput :: node( NodeId ( 3 ) , 0 ) ] ,
56+ inputs : vec ! [ NodeInput :: node( NodeId ( 1 ) , 0 ) ] ,
6857 implementation : DocumentNodeImplementation :: ProtoNode ( graphene_std:: render_node:: create_context:: IDENTIFIER ) ,
6958 context_features : graphene_std:: ContextDependencies {
7059 extract : ContextFeatures :: empty ( ) ,
0 commit comments