Vixen
dd8b0a81
csharp
public readonly record struct ShaderGraphSpan

Which lines of a generated shader one node wrote.

Read the guide page for this →

Fields and properties (3)

  • public NodeId Node

    The node an author can select. For a node that came out of a sub-graph this is the sub-graph node in their own graph, not the synthetic copy — see NodeGraphInlining.

  • public NodeId Emitted

    And the identity the flattened graph gave it, which is the one in the variable names: NodeGraphCompiler.Variable spells an output n{id}_{port}. Kept because "show generated code" is about the text, where that is the name that appears.

  • public NodeSpan Span

    Which lines of Source, counted from zero.

Methods (1)

  • public ShaderGraphSpan(NodeId Node, NodeId Emitted, NodeSpan Span)

    Which lines of a generated shader one node wrote.

Used by (5)

  • ShaderGraphCompilerVixen.Editor.ShaderGraph
  • ShaderGraphDocumentVixen.Editor.AssetEditors
  • ShaderGraphSourceVixen.Editor.ShaderGraph
  • ShaderGraphSpanTestsVixen.Editor.ShaderGraph.Tests
  • SurfaceGraphTestsVixen.Editor.ShaderGraph.Tests