DriftTexture · function

validateDecodeGraph

Whether this graph is one an interpreter can run.

Explained in DriftTexture.

function validateDecodeGraph(graph: DecodeGraph): string | null
import { validateDecodeGraph } from '@driftengine/texture';

Parameters

ParameterTypeDescription
graphDecodeGraph

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.