DriftTexture · interface

GraphEvaluator

Explained in DriftTexture.

interface GraphEvaluator
import type { GraphEvaluator } from '@driftengine/texture';

Properties

NameTypeDescription
shapesreadonlyReadonlyMap<string, readonly number[]>Every value's shape, inputs, tensors and intermediates alike.

Methods

run

run(inputs: ReadonlyMap<string, Float32Array>): Map<string, Float32Array>

Evaluate with these inputs. The returned arrays are the evaluator's own and are overwritten by the next run.

ParameterTypeDescription
inputsReadonlyMap<string, Float32Array>