You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 920bdc8
Browse filesBrowse the repository at this point in the historyBrowse files
Make the render node finish SVG renders without caller post-processing (#5000)
* Make the render node finish SVG renders without caller post-processing
* Remove read_back from the wgpu executor
* Cancel the SVG readback when the render node is dropped
* Move the SVG readback slot into a render node submodule
---------
Co-authored-by: Timon <me@timon.zip>
use graphene_std::blending_nodes::effects::drop_shadow;
1070
+
use graphene_std::raster_nodes::adjustments::black_and_white;
1071
+
1072
+
letmut editor = EditorTestUtils::create();
1073
+
editor.new_document().await;
1074
+
editor.draw_rect(0.,0.,100.,100.).await;
1075
+
1076
+
// Following a shadow, Black & White can't fold into the paints, and no SVG filter mixes the channels as it does, so the rectangle is drawn as an image the GPU renders of it
1077
+
let layer = editor.active_document().metadata().all_layers().next().unwrap();
1078
+
for node in[drop_shadow::IDENTIFIER, black_and_white::IDENTIFIER]{
1079
+
let node_type = DefinitionIdentifier::ProtoNode(node);
/// Images the GPU rendered of content with effects SVG filters can't carry out, which go in place of the markup standing in for that content once read back.
// Without a GPU, the filters' maps and the images of content with effects SVG filters can't carry out keep their placeholders, which leave those effects out
103
-
let(effect_maps, deferred_images) = match output.effect_maps.is_empty() && output.deferred_images.is_empty(){
0 commit comments