public sealed class NodeGraphInliningWhich inlined node came out of which sub-graph node.
Remarks
The half of the mapping that makes a diagnostic actionable. Flatten gives the nodes it copies out of a sub-graph fresh identities, because the author's own graph already owns the ones it has. A complaint about one of those names something that is in no document and on no canvas, so nothing can be selected, framed or highlighted. This is the way back.
⚠ It is not a rename. The flattened graph is what was compiled and its identities are the ones in the emitted variable names, so both are worth keeping: Resolve answers "what does the author click on" and Inner answers "what was it called where they wrote it".
Fields and properties (4)
public static NodeGraphInlining EmptyNothing was inlined.
public IReadOnlyDictionary<NodeId, NodeOrigin> OriginsEvery node that came out of a sub-graph, by the identity it was given.
public IReadOnlyDictionary<int, SubGraphExpansion> ExpansionsEvery sub-graph node that was expanded, by Expansion.
public bool IsEmptyWhether anything was inlined at all.
Methods (4)
public bool TryGet(NodeId node, out NodeOrigin origin)Where one node came from, if it came from a sub-graph.
public NodeId Resolve(NodeId node)The node an author can select for one node of the flattened graph.
public bool TryGetExpansion(NodeId node, out SubGraphExpansion expansion)The expansion one inlined node came directly out of.
public string Describe(NodeId node)Where a node was, as a sentence to put on the end of a diagnostic.
Used by (9)
- FlattenerVixen.Editor.NodeGraph
- NodeGraphCompilerVixen.Editor.NodeGraph
- ShaderGraphCompilerVixen.Editor.ShaderGraph
- SubGraphTestsVixen.Editor.NodeGraph.Tests
- SubGraphsVixen.Editor.NodeGraph
- TextureCompoundLibraryTestsVixen.Editor.TextureGraph.Tests
- TextureGraphCompilerVixen.Editor.TextureGraph
- TextureGraphSubGraphTestsVixen.Editor.TextureGraph.Tests
- TexturePlanSeedTestsVixen.Editor.TextureGraph.Tests