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
sTState- 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.
ctxNodeContext- 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