Pipelines

Shaders and pipelines inside pipelines

Reuse your library inside a graph.

Shaders and pipelines of the library can be reused as parts of a graph. To reuse a part of a graph, a group of nodes, see Macros.

Shaders as nodes

Drag a .fs from the explorer onto the canvas. It becomes a node whose inputs are ports, and whose output is its picture. Its vertex shader, if any, comes with it.

Pipelines as nodes

Drag a .istpipe onto another pipeline: it becomes a node as well. ISF Studio refuses a pipeline that would contain itself.

The embedded graph keeps its loops and shading. Its compiled copy is refreshed from the source pipeline when the composition compiles, including when reopening a composition saved by an older build.

Double-click the body of a pipeline node, or choose Open Source Pipeline from its context menu, to open its source document. The source must still exist in the opened folder. Double-clicking the title still renames the node.

The composition refreshes the source's inputs, types and defaults when it recompiles, including when you return to its tab: they show at once, and the composition does not need to be saved first. This also reads unsaved edits from an open source pipeline. It does not continuously refresh an inactive composition.

In a function, an If or a loop

A shader, a pipeline or a macro can sit inside a Function, an If or a loop, like any other node. Its passes, its imported images and its inputs still belong to the whole pipeline: a multi-pass pipeline renders all its passes every frame, and the container only decides when its result is read.

Staying up to date

A node remembers the shader it came from. When that shader changes, the node is updated the next time the pipeline compiles. If the shader is gone, or comes from somewhere else, the node keeps its own copy and keeps working.

A shader you move or rename in the explorer is not followed by the nodes that use it. They keep their copy, which is safe, and you can drag the shader in again.

Images

An image dropped on the canvas is copied into the .istpipe. The pipeline will not break if the original file does.

Images imported by an embedded pipeline also appear as imports in the composition's inspector and gallery. When the composition does not hold an archive copy, its preview loads the image from the relative path declared by the embedded shader. Keep those images available in the opened folder.

Sharing

A pipeline that contains shaders contains their code too: it is one file, and you can send it as such. See Sharing.