Table of Contents

Delegate PrepareFunctional<TState>

Namespace
Ofs
Assembly
Ofs.Api.dll

Functional factory (worker thread): runs once per region eval and returns the per-sample closure. Build a non-serializable artifact (LUT, interpolator, loaded dataset) here rather than rebuilding it every sample.

public delegate FunctionalSample PrepareFunctional<TState>(in TState s, NodeContext ctx)

Parameters

s TState
Functional factory (worker thread): runs once per region eval and returns the per-sample closure. Build a non-serializable artifact (LUT, interpolator, loaded dataset) here rather than rebuilding it every sample.
ctx NodeContext
Functional factory (worker thread): runs once per region eval and returns the per-sample closure. Build a non-serializable artifact (LUT, interpolator, loaded dataset) here rather than rebuilding it every sample.

Returns

FunctionalSample
Functional factory (worker thread): runs once per region eval and returns the per-sample closure. Build a non-serializable artifact (LUT, interpolator, loaded dataset) here rather than rebuilding it every sample.

Type Parameters

TState