Table of Contents

Method ExecuteImmediate

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

ExecuteImmediate(string[], TerrainGenerationConfigs, GraphInputContainer, FillArgumentsHandler)

Executes the requested outputs immediately on the current frame and returns the pooled results.

public DataPool ExecuteImmediate(string[] nodeIds, TerrainGenerationConfigs configs, GraphInputContainer inputContainer = null, TerrainGraph.FillArgumentsHandler fillArgumentsCallback = null)

Parameters

nodeIds string[]

The output node ids to resolve. The graph automatically executes every dependency required to produce these targets.

configs TerrainGenerationConfigs

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

inputContainer GraphInputContainer

Optional external inputs to bind into the execution context before node evaluation starts.

fillArgumentsCallback TerrainGraph.FillArgumentsHandler

Optional callback that appends extra values to the argument table after the standard graph arguments have been written.

Returns

DataPool

The DataPool that still owns every texture and buffer generated during the execution. Callers are expected to remove outputs they want to keep, then dispose the pool.

Remarks

This path executes every node synchronously by calling ExecuteImmediate(GraphContext) unless the node is bypassed. It is primarily used by subgraph execution and workflows that need the result immediately.

Static execution callbacks are fired around the whole run and around each node.