DriftTexture · function
validateDecodeGraph
Whether this graph is one an interpreter can run.
Explained in DriftTexture.
function validateDecodeGraph(graph: DecodeGraph): string | nullimport { validateDecodeGraph } from '@driftengine/texture';Parameters
| Parameter | Type | Description |
|---|---|---|
graph | DecodeGraph |
In depth
Returns a message rather than throwing, matching validateGraph in the frame package and for
the same reason: whether a malformed graph is an assertion or a skipped material is the
caller's decision.