@@ -1057,94 +1057,6 @@ fn document_node_definitions() -> HashMap<DefinitionIdentifier, DocumentNodeDefi
10571057 description: Cow :: Borrowed ( "Loads an image from a given URL." ) ,
10581058 properties: None ,
10591059 } ,
1060- #[ cfg( all( feature = "gpu" , target_family = "wasm" ) ) ]
1061- DocumentNodeDefinition {
1062- identifier: "Rasterize" ,
1063- category: "Raster" ,
1064- node_template: NodeTemplate {
1065- document_node: DocumentNode {
1066- implementation: DocumentNodeImplementation :: Network ( NodeNetwork {
1067- exports: vec![ NodeInput :: node( NodeId ( 2 ) , 0 ) ] ,
1068- nodes: [
1069- DocumentNode {
1070- inputs: vec![ NodeInput :: scope( "editor-api" ) ] ,
1071- implementation: DocumentNodeImplementation :: ProtoNode ( wasm_application_io:: create_surface:: IDENTIFIER ) ,
1072- skip_deduplication: true ,
1073- ..Default :: default ( )
1074- } ,
1075- DocumentNode {
1076- inputs: vec![ NodeInput :: node( NodeId ( 0 ) , 0 ) ] ,
1077- implementation: DocumentNodeImplementation :: ProtoNode ( memo:: memo:: IDENTIFIER ) ,
1078- ..Default :: default ( )
1079- } ,
1080- DocumentNode {
1081- inputs: vec![ NodeInput :: import( generic!( T ) , 0 ) , NodeInput :: import( concrete!( Footprint ) , 1 ) , NodeInput :: node( NodeId ( 1 ) , 0 ) ] ,
1082- implementation: DocumentNodeImplementation :: ProtoNode ( wasm_application_io:: rasterize:: IDENTIFIER ) ,
1083- ..Default :: default ( )
1084- } ,
1085- ]
1086- . into_iter( )
1087- . enumerate( )
1088- . map( |( id, node) | ( NodeId ( id as u64 ) , node) )
1089- . collect( ) ,
1090- ..Default :: default ( )
1091- } ) ,
1092- inputs: vec![
1093- NodeInput :: value( TaggedValue :: Vector ( Default :: default ( ) ) , true ) ,
1094- NodeInput :: value(
1095- TaggedValue :: Footprint ( Footprint {
1096- transform: DAffine2 :: from_scale_angle_translation( DVec2 :: new( 1000. , 1000. ) , 0. , DVec2 :: new( 0. , 0. ) ) ,
1097- resolution: UVec2 :: new( 1000 , 1000 ) ,
1098- ..Default :: default ( )
1099- } ) ,
1100- false ,
1101- ) ,
1102- ] ,
1103- ..Default :: default ( )
1104- } ,
1105- persistent_node_metadata: DocumentNodePersistentMetadata {
1106- input_metadata: vec![ ( "Artwork" , "TODO" ) . into( ) , ( "Footprint" , "TODO" ) . into( ) ] ,
1107- output_names: vec![ "Canvas" . to_string( ) ] ,
1108- network_metadata: Some ( NodeNetworkMetadata {
1109- persistent_metadata: NodeNetworkPersistentMetadata {
1110- node_metadata: [
1111- DocumentNodeMetadata {
1112- persistent_metadata: DocumentNodePersistentMetadata {
1113- node_type_metadata: NodeTypePersistentMetadata :: node( IVec2 :: new( 0 , 2 ) ) ,
1114- ..Default :: default ( )
1115- } ,
1116- ..Default :: default ( )
1117- } ,
1118- DocumentNodeMetadata {
1119- persistent_metadata: DocumentNodePersistentMetadata {
1120- node_type_metadata: NodeTypePersistentMetadata :: node( IVec2 :: new( 7 , 2 ) ) ,
1121- ..Default :: default ( )
1122- } ,
1123- ..Default :: default ( )
1124- } ,
1125- DocumentNodeMetadata {
1126- persistent_metadata: DocumentNodePersistentMetadata {
1127- node_type_metadata: NodeTypePersistentMetadata :: node( IVec2 :: new( 14 , 0 ) ) ,
1128- ..Default :: default ( )
1129- } ,
1130- ..Default :: default ( )
1131- } ,
1132- ]
1133- . into_iter( )
1134- . enumerate( )
1135- . map( |( id, node) | ( NodeId ( id as u64 ) , node) )
1136- . collect( ) ,
1137- ..Default :: default ( )
1138- } ,
1139- ..Default :: default ( )
1140- } ) ,
1141- ..Default :: default ( )
1142- } ,
1143- } ,
1144- description: Cow :: Borrowed ( "TODO" ) ,
1145- properties: None ,
1146- } ,
1147- // TODO: Auto-generate this from its proto node macro
11481060 DocumentNodeDefinition {
11491061 identifier: "Noise Pattern" ,
11501062 category: "Raster: Pattern" ,
0 commit comments