Table of Contents

Constructor GraphContext

Namespace
Pinwheel.Vista.Graph
Assembly
Pinwheel.Vista.Runtime.dll

GraphContext(GraphAsset, string[], DataPool, IDictionary<int, Args>, ExecutionProgress)

Creates a runtime execution context for a set of target nodes.

public GraphContext(GraphAsset graph, string[] nodeIds, DataPool pool = null, IDictionary<int, Args> args = null, ExecutionProgress progress = null)

Parameters

graph GraphAsset

The graph asset being executed.

nodeIds string[]

The target node identifiers requested by the caller. The context expands these into the full dependency execution sequence.

pool DataPool

Resource pool used to allocate and retain transient graph outputs.

args IDictionary<int, Args>

Request-wide execution arguments such as resolution, bounds, height scale, and seed.

progress ExecutionProgress

Optional progress object updated while the graph runs.

Exceptions

RecursiveGraphReferenceException

Thrown when subgraph dependencies form a recursive graph reference chain.

ArgumentException

Thrown when one of the requested node identifiers cannot be resolved to a node.