Freezes graph in place — the object, its node array, every node, and
every node's component array — and returns it. RFC 0001: the graph is
immutable; a NodeMaterial freezes what it is handed, so the program a
backend caches on the graph can never drift from the graph that keyed it,
and Material.version keeps meaning what it means (render state is read
per draw, never cached — a mutable graph would make the program cacheable
on a counter that deliberately does not move).
Freezes
graphin place — the object, its node array, every node, and every node's component array — and returns it. RFC 0001: the graph is immutable; aNodeMaterialfreezes what it is handed, so the program a backend caches on the graph can never drift from the graph that keyed it, andMaterial.versionkeeps meaning what it means (render state is read per draw, never cached — a mutable graph would make the program cacheable on a counter that deliberately does not move).