Commit Graph
308 Commits
Author SHA1 Message Date
Dennis Kobert 6b8040dab5 Remove no_std leftovers 2026-10-31 09:01:43 +00:00
Dennis Kobert 892ad740e3 Report a raster kernel's GPU failures and oversized outputs rather than saying a GPU is required 2026-10-31 09:01:27 +00:00
Dennis Kobert 3e58246c0b Wait for a readback's map callback when another thread's poll is running it 2026-10-30 20:22:17 -07:00
Keavon Chambers 6264e7396a Add curvature dials to gradients, rendered as a pencil of circles on Vello GPU 2026-10-30 20:22:17 -07:00
Keavon Chambers 9bf8f2469d Replace Color Overlay with a Paint Overlay effect that paints with any graphic 2026-10-30 20:22:17 -07:00
Dennis Kobert 95e9c2852e Upload a CPU raster wire feeding a GPU-only input through its input adapter 2026-10-30 20:22:17 -07:00
Keavon Chambers 06d83843fa Speed up adjusted solid vector paints by folding the adjustments into the paint 2026-10-30 20:22:05 -07:00
Keavon Chambers 28e0112504 Speed up an image's leading adjustments by running them on a copy of its texture 2026-10-30 20:22:05 -07:00
Dennis Kobert 11d097f103 Give GPU rasters drawn smaller than their pixels mipmaps 2026-10-30 20:22:05 -07:00
Keavon Chambers 78e3166d22 Extend adjustments to images, colors, and gradients, stamped on images and carried out at once on colors and gradients 2026-10-30 20:22:05 -07:00
Keavon Chambers 661f37fa17 Allow adjustments on any graphic, carried out on the GPU by their kernels 2026-10-30 20:22:05 -07:00
Keavon Chambers aa7ebfc18c Add a Bevel & Emboss effect lighting the inner, outer, emboss, and pillow slopes 2026-10-30 20:22:05 -07:00
Keavon Chambers 2be0d1889b Add Inner Glow, Satin, and Outline effects to any graphic 2026-10-30 20:22:05 -07:00
Dennis Kobert 3b7d46836d Add an Eager node that uploads a raster and carries out its effects 2026-10-30 20:22:05 -07:00
Keavon Chambers 8f0ef2da8b Add Blur, Drop Shadow, Inner Shadow, and Outer Glow effects to any graphic 2026-10-30 20:22:05 -07:00
Keavon Chambers b88eee543a Move the noise and Mandelbrot kernels into a generator module rendering any area 2026-10-30 20:22:05 -07:00
Keavon Chambers e01f602b13 Upload images with mipmaps so they average their pixels when zoomed out 2026-10-30 20:22:05 -07:00
Keavon Chambers 8fd36852c1 Gather each adjustment's settings into plain data run by its kernel 2026-10-30 20:22:05 -07:00
Dennis Kobert c698fb157d Give content that nodes move or copy a footprint covering everywhere it lands 2026-10-30 20:22:05 -07:00
Dennis Kobert 48ee95a802 Keep a GPU raster's logical placement separate from the region its pixels cover 2026-10-30 20:22:05 -07:00
Dennis Kobert f3edba1603 Fall back to half-float rasters where the GPU can't render full floats 2026-10-30 20:22:05 -07:00
Dennis Kobert 7bb28460cc Merge no-std-types into core-types 2026-10-30 20:22:05 -07:00
Dennis Kobert f8c3984b6c Render the Rasterize node with Vello 2026-10-30 20:22:05 -07:00
Dennis Kobert d53c990f72 Run raster consumers on GPU rasters 2026-10-30 20:22:05 -07:00
Dennis Kobert fc488dd91f Embed GPU rasters in SVG output by downloading them first 2026-10-30 20:22:05 -07:00
Dennis Kobert ceb39a2c5b Give GPU rasters an empty default 2026-10-30 20:22:04 -07:00
Dennis Kobert b9e0df685f Run Dehaze and Image Color Palette on GPU rasters 2026-10-30 20:22:04 -07:00
Dennis Kobert 135b05bacf Run raster nodes on GPU rasters through hand-written WGSL kernels 2026-10-30 20:22:04 -07:00
Keavon Chambers b39ec01d7d Retire Rust GPU, the 'Upload Texture' node, and the "GPU"-suffixed adjustment node twins (#4873)
* Retire the rust-gpu twins of the adjustment nodes, leaving rust-gpu dormant

* Remove the dormant rust-gpu shader crate and everything that supported it
2026-10-30 17:52:29 -07:00
Dennis Kobert ef3b45ae79 Limit number of instant graph reevaluations (#4758)
* Defer re-evaluations triggered by finished tasks to the next frame once the frame budget is spent, and abort the tasks of removed sources

* Clean up the frame budget change: share the Instant clock, drop redundant scheduling calls and comments

* Treat a zero frame budget as unlimited, let render signals cut the deferred-frame wait short, and fix the RFC's Runtime::spawn signature
2026-10-30 17:20:36 +01:00
Timon d90cc62bc1 Make nodes report errors instead of panicking or failing silently (#4837)
* Fix crashes and report errors in math nodes

* Fix crashes and report errors in text nodes and Boolean Operation

* Fix crashes and report errors in raster, brush and I/O nodes

* Fix crashes and report errors in vector and transform nodes

* Report errors from graphic and context nodes
2026-10-30 14:16:24 +00:00
Timon a2e62ed47e Report GPU and resource failures as node errors (#4846)
* Allow lazy scope inputs

* Report a missing GPU instead of panicking

* Return pipeline errors instead of panicking

* Stop logging error paths outside the document

* Report missing resources as errors

* Report Vello failures in Rasterize

* Better GPU test error handling
2026-10-30 12:22:06 +00:00
Keavon Chambers 342957caba Rename the 'Mix' node to 'Mix Colors' and remove its image and gradient support (#4858)
* Rename 'Mix' to 'Mix Colors' and remove its image and gradient support

* Reuse the blend color math for stacked paint colors
2026-10-30 02:29:58 -07:00
Keavon Chambers 0b20fd7869 Send "SVG Preview" mode images once, at a resolution suited to the zoom (#4856)
* Send SVG Preview images once, at a resolution suited to the zoom

* Avoid copying unhalved canvas images and tolerate float noise in their scale
2026-10-29 23:28:16 -07:00
Keavon Chambers cddd828842 Share CPU raster pixels under stable IDs so each image uploads once (#4855)
* Share CPU raster pixels under stable IDs so each image uploads once

* Free the textures of dropped rasters and keep image canvas keys apart
2026-10-29 21:30:19 -07:00
TimonandDennis Kobert c180edeced Add Graphviz output to graphene-cli (#4838)
* Add Graphviz output to graphene-cli

* Review

* Use compiler node IDs

* Simplify proto dump and hash EditorApi and RuntimeHandle by content

---------

Co-authored-by: Dennis Kobert <[email protected]>
2026-10-28 17:57:58 +00:00
Keavon Chambers c20da5c3a5 Make the Vello GPU renderer robustly handle complex/degenerate scenes and remove preferences' Render Tile Resolution (#4821)
* Split renders too dense for Vello GPU and make infinite coordinates finite

* Remove the Render Tile Resolution preference, sizing render regions by GPU limits
2026-10-27 18:01:50 -07:00
Dennis Kobert f73fbfb719 Cleanup const checking in the compiler (#4825)
* Cleanup const checking in the compiler

* Reject constant data fields and update README node snippet

* Group all boolean node attributes into NodeFlags
2026-10-26 19:53:39 +01:00
Dennis Kobert 7e6e4276d1 Render thumbnails with Vello (#4805) 2026-10-26 11:33:36 +00:00
Dennis Kobert a566448ae2 Edit the inspected node's context in the Data panel (#4804) 2026-10-26 11:33:35 +00:00
Dennis Kobert 596191b537 Render thumbnails from each layer's observed context (#4802) 2026-10-26 11:10:43 +01:00
Dennis Kobert 6c158c689d Warn user when the tile cache invariant is violated (#4815)
* Warn user when the tile cache invariant

* Report footprint invariance violations as separate compiler warnings
2026-10-26 10:27:20 +01:00
Keavon Chambers 280105bd51 Share one Vello renderer between canvases with their own frame resources (#4817) 2026-10-25 20:12:56 -07:00
Timon ce0826aaac Desktop: Import dma-bufs through wgpu-hal with queue ownership transfers (#4814)
Import dma-bufs through wgpu-hal with queue ownership transfers
2026-10-26 02:20:43 +00:00
Keavon Chambers 64392aeae8 Patch Vello to render gradients with exact stop evaluation, fixing banding and SVG incompatibility (#4816)
Render gradients with exact stop evaluation, fixing banding and coincident stops
2026-10-25 19:12:10 -07:00
Keavon ChambersandDennis Kobert d9a80b5c94 Switch rendering to Vello GPU, with the web build now using WebGL2 instead of WebGPU (#4807)
* Switch rendering from Vello's classic compute renderer to Vello GPU

* Render the web build with WebGL2 rather than WebGPU

* Expand each shared geometry's strokes once and skip vector items outside the rendered area

* Create the WebGL2 viewport canvas in the canvas utilities instead of storing it on the wgpu context

* Restrict the raw wgpu surface accessor to wasm

---------

Co-authored-by: Dennis Kobert <[email protected]>
2026-10-25 15:42:24 -07:00
Timon c48cb4c7c9 Update wgpu to 30 (#4810) 2026-10-25 18:52:53 +00:00
Timon 7696c8e7f1 Desktop: Fix adapter selection override (#4809)
Fix adapter selection
2026-10-25 17:07:25 +00:00
Keavon ChambersandDennis Kobert 376f38ec3b New node: 'Convex Hull' (#4800)
* Add convex hull node

* Finish the convex hull node: in-repo algorithm, robustness, and tests

Replaces the WIP node crate, which depended on a convex_hull crate that
only existed outside the repository, with a self-contained implementation:

- The curved hull algorithm lives in vector-types' algorithms module. It
  splits curves at inflections and cusps into curvature-monotone arcs,
  discovers the boundary structure from a sampled polygonal hull, refines
  every transition to an exact tangency with closed-form quartic
  tangent-through-point solves, then emits the boundary as cuts of the
  original segments joined by straight bridge lines.

- The node moves into vector-nodes alongside the other 'Vector: Modifier'
  nodes, ported to the List/attributes model. It accepts Graphic[] or
  Vector[], wraps every subpath (open or closed) and free-floating anchor
  point across all items, and outputs a single world-space hull path.

- The boolean-union pre-pass is dropped as unnecessary: the hull of all
  segments equals the hull of their union, and the polyline connector it
  relied on lost floating points and mishandled open paths.

* Make 'Convex Hull' a rolling-ball concave hull with a 'Curvature' parameter

* Keep shared welded anchors when closing, and fold -0 into 0 in position keys

---------

Co-authored-by: Dennis Kobert <[email protected]>
2026-10-24 19:23:46 -07:00
Keavon Chambers 1fe1016df5 Add the 'Heart' node and Shape tool mode (#4798)
* Add a 'Heart' node with sliders for its cleft, lobes, sides, and tip

* Add hearts to the Shape tool with a gizmo for each 'Heart' parameter
2026-10-24 18:29:31 -07:00