GraphiteEditor / GraphiteEditor/Graphite
Node variadic inputs to represent T as T[]
- Vorherrschende Sprache
- Rust
- Sterne
- 27.2k
- Forks
- 1.3k
- Ø Merge
- 20 Std. 5 Min.
- Gemergte PRs (30 T.)
- 57
Beschreibung
A node which takes a Vec should be able to expose itself as a variadic input, which looks like this:
| 100% Zoom | 200% Zoom |
|--------|--------|
|  |  |
*(7x14 rectangle with 2px rounding)*
Multiple wires can enter this. The order of the wires entering the variadic input does matter, and it laid out from top to bottom. The node receives these as a Vec of T and otherwise acts normally.
The node macro can define whether a data type, that's a Vec, is shown as variadic or regular. We should also consider whether we support the Table data type, where multiple wires become multiple table rows.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne damit, die Verarbeitung von Vec-Eingaben durch das Node-Makro und das in diesem Issue beschriebene Verhalten von Node-Graphs mit variadischen Eingaben nachzuverfolgen. Bestätige, wie die Reihenfolge der Verbindungen und das Layout von oben nach unten dargestellt werden sollen, und definiere den Abschluss dahingehend, dass variadische Vec-Eingaben normal funktionieren; die Unterstützung von Table bleibt eine offene Designfrage.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- rust
- Bereich
- computer-graphics
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 25/100