Pipelines

Editing a graph

Add, connect, group and arrange nodes.

The canvas

Drag the background to pan, use the wheel to zoom. The toolbar under the graph has buttons to fit the graph in the view, show a minimap and more.

Adding nodes

Right-click the canvas for the add menu: a search field on top, then the categories. Type three letters of what you want and it appears. You may also drag from the explorer (shaders, pipelines, images) or from the Toolbox (snippets).

Imported images

While editing a pipeline, an image from the opened folder keeps its real path, relative to the pipeline. The Imports inspector shows that file, and the Gallery counts it as used by the pipeline.

Saving embeds a fresh copy of each referenced image in the .istpipe archive and writes imported/… paths in its graph and compiled shader. Studio also keeps the original path so reopening the pipeline restores the external reference. If an external image cannot be read, saving is refused with a message rather than silently embedding an outdated copy.

Images carried only by an archive are shown from that archive; they are not attributed to a homonymous file in the folder.

To use another image in its place, right-click the Imported Image node and choose Replace Image…, or right-click the image in the Imports inspector. Pick an image of the folder: the node keeps its name, so the shader reads the same variable, and one undo brings the old image back. From the inspector, every node of the graph you are looking at that holds that image is replaced; open the group first for the ones inside it.

Finding a node

Cmd+F (or the magnifier at the right of the bar above the graph) opens a search field at the top right of the canvas, like the one of the code editors, without the replacement. Type a part of a name: a list shows the nodes that match, each with where it is, as Pipeline › Group › Loop.

  • The search reads the name of the nodes only: the one you gave them, else the one they have by default; an input is found by its name (speed), not by its type. It does not look into the values of the ports.
  • It goes through the whole pipeline, the vertex graph and the contents of groups, loops and functions included. A node is listed once.
  • The same switches as the code editors: Aa for the case, ab for whole words, and .* for a regular expression.
  • Choose a node with a click, or with the arrow keys and Enter. The containers that lead to it are opened, the node is selected and the canvas centres on it, without zooming further than it was. The search then closes. It also closes with Escape, or with a click anywhere else: that cancels it.

Working with nodes

Right-click a node:

  • Rename, Cut, Copy, Paste, Duplicate, Delete.
  • Create Group (Cmd+G): turns the selected nodes into a group.
  • Create Input: exposes a port as an input of the whole pipeline.
  • Proxy Input / Proxy Output: a stand-in for a port, to avoid drawing a line across the entire canvas.

Select several nodes with a rectangle, or hold Shift. Undo and redo (Cmd+Z, Cmd+Shift+Z) take back the rename, cut, paste, duplicate, group and delete actions.

Connections

Drag from a port to another. Types are checked as you go: a connection that cannot work is refused, and a port that has no type yet takes the type of the first thing you plug in, and gives it back when you unplug.

A node whose output goes nowhere is drawn with a dashed orange outline: what it computes is used by nothing. Two kinds are allowed to be wired to nothing and are not outlined: an Input of an If, and a Pass that a Read Pass names (it is read by its target name, not by a wire). A Pass that nothing reads is outlined, as it does nothing.

Notes on nodes

A Comment, a To-do or a Text can be put on a node. Drag the diamond handle on the right of the note and let it go on the body of a node (while you drag, the node under the cursor shows the diamond it will get): the node gets a diamond of its own above its top left corner, and a dashed cable joins the note to it. Every string (the output of a note, the text input of Draw Text) has this pale diamond: it is the only handle of its shape and colour. The note stays where it is; drag it onto another node to move it, and any number of notes can be on one node (a note goes on a node that computes, or on a container: on a group the shader gets it above what the group holds, on a function above its declaration, on a loop or a branch above the code it makes; not on the nodes at the edge of a container, such as a loop input).

What the note says is written in the shader, as // comments right above the line of that node. A To-do is written as // TODO: …, so that the tools that look for TODO in code find it (a to-do with no text is written as // TODO). Open the Code view of the pipeline to read it: the nodes that have a note always get a line of their own, so the comment has something to stand above. Undo and redo take a note on and off like any other change, and take back the text you typed in a note (a whole stay in the field at once) or the size you gave it.

Arrange the nodes keeps the notes with their nodes: a note stays on the same side of the node it is on and moves with it. A note that is on no node moves like the node that was nearest to it.

Groups, loops and functions

  • A group hides a part of the graph behind one node. Double-click to open it, and again to come back.
  • A loop repeats a graph (for, while, do-while), with its own inputs, outputs, and break and continue nodes.
  • A function is a graph you call from elsewhere, with parameters and a return value. A snippet can be called the same way.
  • A macro is a group that you keep under a name, to place it again in other pipelines, of any library. See Macros.

Iterator controls

Iterator (for) loops contain separate Index, Condition and Increment nodes. Index exposes the current integer i; Condition receives a boolean expression and Increment receives an integer expression.

Iterators can also live inside groups. Their initial inputs and final outputs remain connected through the group's exposed ports.

Select a loop Input or Output node to choose its type in the Inspector. The choice updates the matching port on the parent Iterator and supports undo/redo. Choose any to let connections determine the type.

The default graph still supplies an Index < 8 comparison and an increment of 1, using external comparison and integer nodes. You can replace those connections with any compatible expressions, including calculations that use Index.

The starting index remains on the parent Iterator's i input and defaults to 0; it is evaluated before the loop starts. As before, an unconnected Condition defaults to true and an unconnected Increment to 1. Loops keep their safety limit of 1,024 iterations, including when the increment is zero or the condition never becomes false.

The vertex graph

A pipeline can have a vertex graph next to the fragment one, for effects that need to move the geometry. Most pipelines do not have one.

Inputs

Inputs you create show up in the controls panel and in the ISF header of the compiled shader, so the same sliders work in Studio and in whatever plays the shader.

Configure an existing input from the Inspector's Inputs section to edit its name, label, description and values. Changes update its node and can be undone and redone. Add or delete inputs and choose their type on the graph; inputs contributed by an embedded shader are edited in their source.