validate()
Checks whether the graph is well-formed without producing a Metal library.
Declaration
final func validate() -> BoolReturn Value
true if the graph passes front-end validation, false otherwise.
Discussion
Runs the ShaderGraph compiler front end — parsing, graph construction, and the transform pipeline — but stops short of stitching the graph into a Metal library. Use this to catch structural problems before paying the cost of a full compile.
Validation is cheaper than ShaderGraphMaterial compilation, but the exact amount of work skipped is not guaranteed and may change over time. A graph that passes validate() may still fail later during Metal library generation.