Dennis Kobert
5db7e1816a
Make Node::layout non-optional, defaulting to a shared empty layout
2026-08-11 09:20:02 +00:00
Dennis Kobert
5b02edfd9a
Split the node macro codegen into classify, entries, and metadata modules
2026-08-10 16:15:31 +00:00
Dennis Kobert
7c0a4073e9
Select the eval tail form by class and dialect through an explicit Tail step
2026-08-10 15:57:58 +00:00
Dennis Kobert
275100eab0
Model the eval body as an EvalStep sequence with a structural stack discipline
2026-08-10 15:34:12 +00:00
Dennis Kobert
42cd2a4303
Resolve the dialect and input-role axes as node-model sum types
2026-08-10 15:21:59 +00:00
Dennis Kobert
e4f81fc947
Drive the node macro from a single analyze pass, NodePlan, and shared NodeFields
2026-08-10 13:33:58 +00:00
Dennis Kobert
a465948ad4
Always-spill records, retiring inline-16 and reclaiming read-out record frames
2026-08-10 10:29:22 +00:00
Dennis Kobert
63cf0151e2
Change stack return to standart sret semantics
2026-08-08 07:33:33 +00:00
Dennis Kobert
9c7a633d5b
Adopt tuple attribute io and the carrier lowering, deleting the bridge adapters for record-only wires
2026-08-06 18:48:16 +00:00
Dennis Kobert
166241b0e8
Flip nested-generic nodes onto record wires by unifying row types against field types
2026-08-06 13:36:46 +00:00
Dennis Kobert
ea49f3c2fc
Delete the Ref wire type and its lend edge surface
2026-08-06 12:24:50 +00:00
Dennis Kobert
100f81c307
Retire the lend machinery and flip the clone node onto record wires
2026-08-06 11:57:18 +00:00
Dennis Kobert
612afb7ebb
Capture the input context snapshot on the monitor io record
2026-08-06 09:37:48 +00:00
Dennis Kobert
a2de2a9c09
Add the record-opaque kernel class to the node macro and define memoize through it
2026-08-06 08:28:52 +00:00
Dennis Kobert
98be2b8c79
Carry erased element and re-park glue on layouts and collapse memoize to a generic record row
2026-08-06 08:01:19 +00:00
Dennis Kobert
20c6ba19d3
Flip async source nodes onto record wires by lifting their slot values
2026-08-05 23:54:42 +00:00
Dennis Kobert
7eeb7d84cd
Flip poll kernels and derived-context lazy nodes onto record wires and land record roots at the host rim
2026-08-05 23:42:24 +00:00
Dennis Kobert
7ddc66adbe
Flip lazy-input nodes onto record wires through the element lazy input
2026-08-05 23:12:43 +00:00
Dennis Kobert
c20a243fc2
Flip lend-parameter nodes onto record wires and keep the clone adapter plain
2026-08-05 22:57:51 +00:00
Dennis Kobert
3eecc31bfd
Flip generic value nodes onto record wires through phantom struct parameters
2026-08-05 22:39:25 +00:00
Dennis Kobert
7099f056dc
Flip concrete value nodes onto record wires with bridge rows for every value type
2026-08-05 22:18:50 +00:00
Dennis Kobert
592b2fbe32
Turn context modification into a generic record routing node and park droppable elements as arena references
2026-08-05 19:25:17 +00:00
Dennis Kobert
9fc4fcc7a0
Inline records of at most 16 bytes into the two-word RecordValue with layout-resolved storage
2026-08-05 17:23:09 +00:00
Dennis Kobert
7915800d73
Add per-field erased-read glue, the record monitor with introspection capture, and rename record constructors to new
2026-08-05 15:22:20 +00:00
Dennis Kobert
c91be74a55
Add the Record wire type, record registry rows, lift and extract adapters, and executor stack reservation
2026-08-05 12:24:20 +00:00
Dennis Kobert
abe2a565d1
Drop the list driver, make attribute values Copy over arena references, and land record-tier offset io on a per-thread record stack
2026-08-05 09:47:03 +00:00
Dennis Kobert
6154e4d219
Add the attribute census, node macro attribute io over list wires, and the rank-0 record tier
2026-08-04 22:05:02 +00:00
Dennis Kobert
62b7ccf40c
Support bare reference parameters and lending outputs in the node macro and make the clone node the clone-out adapter
2026-08-03 18:29:16 +00:00
Dennis Kobert
562e6602eb
Poll source tasks once at spawn and land inline completions in the first eval
2026-08-03 10:21:46 +00:00
Dennis Kobert
d385f3c69b
Fix warnings
2026-08-02 15:06:11 +00:00
Dennis Kobert
8686b2c891
Export the async-source flag from the macro and dispatch superseded type deltas in tests
2026-08-02 14:09:27 +00:00
Dennis Kobert
81a319430b
Cut over to the graphene execution model
2026-07-31 23:19:42 +02:00
Timon
eb50be844b
Remove now obsolete disable-registration special case from node macro ( #4375 )
2026-07-25 13:54:46 +00:00
Keavon Chambers
f05a644bd9
Revamp the syntax to #[hard(a..b)] and #[soft(a..b)] bounds on node definitions ( #4307 )
...
* Revamp the syntax to #[hard(a..b)] and #[soft(a..b)] bounds on node definitions
* Address review feedback: error on empty bounds ranges and remove redundant count clamps
* Fix NaN transform from Repeat Array with a count of 1
* Remove redundant manual clamps already enforced by #[hard(...)] bounds
2026-07-03 18:48:58 -07:00
Timon
e524dff1a7
Add node macro support for injecting nodes into global scope ( #4221 )
...
* Macro support
* Preprocessor support
* Allow Cow str as scope name
* Use Passthrough node to work around compiler auto wrapping the producer node and invalidating the node id
* Stable NodeIds
* Less hacky but with bad performace
* Remove Cow from RegistryValueSource::Scope
* Connect scope injections to the inner network export
---------
Co-authored-by: Dennis Kobert <dennis@kobert.dev >
2026-06-11 18:14:58 +00:00
Keavon Chambers
21e5e06b0b
Clean up document message wrappers around proto nodes so they're now used directly ( #4101 )
...
* Rename the 'Identity' node to 'Passthrough' internally
* Rename the 'Memoize' node to 'Cache' internally
* Let skip_impl proto nodes auto-generate as document node definitions
* Remove the wrapper 'Passthrough' node from document_node_definitions.rs
* Remove the wrapper 'Cache' node from document_node_definitions.rs
* Remove the wrapper 'Monitor' node from document_node_definitions.rs
* Remove the wrapper 'Noise Pattern' node from document_node_definitions.rs
* Remove the wrapper 'Brush' node from document_node_definitions.rs
* Remove the wrapper 'Transform' node from document_node_definitions.rs
* Code review improvements
* Rename Cache node back to Memoize
* More code review
2026-05-03 19:26:36 -07:00
Dennis Kobert
e0368435b9
Add the "memoize" attribute to the node macro ( #4065 )
...
* Add memoization attribute to node macro
* Fix memoization insertion for networks without conversion nodes
2026-04-28 11:55:38 +00:00
Keavon Chambers
86e41a110a
Make the node macro include doc comments when hovering a node's function ( #3979 )
2026-03-31 02:55:27 -07:00
Keavon Chambers
7af60e02a3
Add the auto-generated node catalog to the website's user manual ( #3662 )
...
* Generate the MVP node catalog in the manual (with some placeholders)
* Implement nearly the rest of everything
* Move to the tools directory and make it generate nicer default values
* Add category descriptions
* Organize file structure and improve type naming
* Improve book table of contents code
* Add collapsing chapter navigation to the book template
* Add to build workflow
* Clean up site structure
2026-01-20 22:52:03 -08:00
Dennis Kobert
e88db022af
Exclude node registry functions from desktop frontend builds ( #3584 )
...
* Exclude node registry functions from desktop frontend builds
This reduces compile times and file sizes
* Use early return
* Fix branch name in build-linux pipeline
2026-01-06 12:34:15 +00:00
Dennis Kobert
fafc687d84
Migrate memo nodes to node macro and make implementing other persistent nodes easier ( #3552 )
...
* Add #[data] and #[serialize] attributes to node macro
- Add #[data] attribute for struct fields that aren't node parameters
- Data fields are initialized with Default::default()
- Passed as references to the underlying function
- Excluded from registry metadata (internal state)
- Generic types in data fields allowed without #[implementations]
- Add #[serialize] attribute for custom Node::serialize() implementation
- Receives references to all data fields
- Generates serialize() method in Node trait impl
- Conditional derives based on data field presence
- With data fields: Debug, Clone only
- Without data fields: Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash
* Refactor Memo and Monitor Node to use node macro
* Move Complex type into type alias
* Fix format
* Update node-graph/nodes/gcore/src/memo.rs
Co-authored-by: Keavon Chambers <keavon@keavon.com >
* Update node-graph/nodes/gcore/src/memo.rs
Co-authored-by: Keavon Chambers <keavon@keavon.com >
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2026-01-05 22:28:02 +01:00
Dennis Kobert
57b0b9c7ed
Restructure node crates ( #3384 )
...
* Restructure node-graph folder
* Fix wasm compilation
* Move node definitions out of *-types crates
* Cleanup
* Fix warnings
* Fix warnings
* Start adding migrations
* Add migrations and move memo nodes to gcore
* Move nodes/gsvg-render -> rendering
* Replace some hard coded identifiers and fix automatic conversion
* Fix Vec2Value node migration
* Fix formatting
* Add more migrations
* Cleanup features
* Fix core_types::raster import
* Update demo artwork (to make profile ci work)
* Move *-types to node-graph/libraries folder
* Add missing node migrations
* Migrate more nodes
* Remove impure memo node
* More fixes and remove warning
* Migrate context and add a few missing migrations
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-11-18 10:21:54 +00:00
Daniil Loban
0d8c521fbe
New node: String Split ( #3304 )
...
* Add two nodes for substring
* fix: number convention
* Remove unnecessay allocations and add support for \n in patterns
* Make split node return Vec<String> and remove count_elements node
* Add Cache implementations for Vec<String>
* Code review
---------
Co-authored-by: daniil.loban <daniil.loban@gmail.com >
Co-authored-by: Dennis Kobert <dennis@kobert.dev >
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-11-03 21:02:12 +00:00
skearya
c4bbb7e880
Reduce editor message size by 67% and fix simple clippy warnings ( #3327 )
...
Reduce message size and fix some clippy issues
2025-11-02 08:50:29 +01:00
Firestar99
f12b4da549
Shaders: add BufferStruct to support bool and enums ( #3109 )
...
* node-macro: modernize `node` macro
* node-macro: add `CrateIdent` struct containing resolved crate paths
* shaders: add trait `BufferStruct` and derive macro
* shaders: `gamma_correction` and `channel_mixer` gpu nodes
* shaders: `selective_color` gpu node
* shaders: `brightness_contrast_classic` gpu node
* shaders: append GPU to display name
* node-macro: fixup doc links
* shaders: consistently append " GPU" to all shader node names
2025-09-05 16:32:41 +00:00
Dennis Kobert
acd7ba38cc
Graphene: Fine-grained context caching ( #2500 )
...
* RFC: Fine Grained Context Caching
* Fix typos
* Fix label
* Add description of inject traits
* Explicitly support context modification
* Start implementation of context invalidation
* Add inject trait variants
* Route Extract / Inject traits to the proto nodes
* Implement context dependency analysis
* Implement context modification node insertion
* Fix erronous force graph run message
* Fix Extract* Inject* annotations in the nodes
* Require Hash implementation for VarArgs
* Fix nullification node insertion
* Cross of done items unresolved questions section
* Update Cargo.lock
* Fix context features propagation
* Update demo artwork
* Remove BondlessFootprint and FreezeRealTime nodes
* Fix migration
* Add migrations for adding context features to old networks
* Always update real time regardless of animation state
* Cargo fmt
* Fix tests
* Readd sed command to hopefully fix profile result parsing
* Add debug output to profiling pr
* Use new totals instead of summaries for for iai results
* Even more debugging
* Use correct debug metrics (hopefully)
* Add more MemoNode implementations
* Add context features annotation to shader node macro
* Cleanup
* Time -> RealTime
* Code review
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-09-05 11:44:26 +00:00
Firestar99
5d441c2e18
Shaders: runtime and shader node codegen ( #2985 )
...
* shader-rt: initial
* shader-rt: fix recursion when generating shader node
* shader-rt: replace gpu node's args and ret types with `Raster<GPU>`
* shader-rt: properly cfg out the gpu node
* shader-rt: fix `impl Context` in the wrong places
* shader-rt: disable gpu blend node, needs two images
* shader-rt: connect shader runtime
* shader-rt: pass WgpuExecutor by reference
* shader-rt: correct bindings with derpy arg buffer
* shader-rt: manual pipeline layout, fixing errors when bindings got DCE'd
* shader-rt: correct RT format, working invert gpu node
* shader-rt: cleanup codegen with common sym struct
* shader-rt: correct arg buffer handling
* shader-nodes feature: put shader nodes behind feature gate
* shader-nodes feature: rename any `gpu_node` to `shader-node`
* shaders-rt: fix wgpu label name
* shaders-rt: explain fullscreen_vertex coordinates with a drawing
2025-09-05 08:33:53 +02:00
Firestar99
a10103311e
Shaders: rust-gpu integration to compile shader nodes to WGSL ( #3097 )
...
* shaders: shader compilation setup
* nix: use rustc_codegen_spirv.so from nix
* shaders: codegen for per_pixel_adjust shader nodes
* shaders: disable nodes needing bool
* shaders: `#[repr(u32)]` some enums
* shaders: add lint ignores from rust-gpu
* shaders: fix node-macro tests
* gcore-shaders: toml cleanup
* shader-nodes feature: put rust-gpu to wgsl compile behind feature gate
* shaders: fix use TokenStream2
* shaders: allow providing shader externally
* Update iai runner in workflow
---------
Co-authored-by: Timon Schelling <me@timon.zip >
Co-authored-by: Dennis Kobert <dennis@kobert.dev >
2025-09-02 14:10:32 +00:00
Dennis Kobert
7377871106
Fix clippy warnings ( #3085 )
...
* Run clippy fix
* Clippy v2
* Make const item static
* Cargo fmt
2025-08-23 11:45:47 +02:00
Firestar99
b44a4fba1e
node-macro: cleanup ParsedField struct ( #3064 )
...
* node-macro: cleanup `ParsedField` struct
* node-macro: fixup tests
2025-08-19 09:25:58 +00:00