Vixen
dd8b0a81
csharp
public record class PortDefinition

One port of a node type.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Named rather than numbered, and that is a compatibility decision. A node type that gains a port must not renumber the ones a saved graph is already connected to, and an author who renames a field would otherwise silently move every edge that pointed at it. Ports are matched by name on load; a name that is gone is an edge that is dropped, with a diagnostic, which is the failure that can be understood.

Fields and properties (5)

  • public string Name

    What it is called. A saved graph names its edges by this.

  • public PortDirection Direction

    Which way it faces.

  • public PortKind Kind

    What it carries.

  • public string Summary

    One line saying what it means.

  • public ImmutableArray<float> Default

    The default, or an empty span when the port has none.

Methods (1)

  • public PortDefinition(string Name, PortDirection Direction, PortKind Kind, ImmutableArray<float> Default = default(ImmutableArray<float>), string Summary = "")

    One port of a node type.

Used by (34)

  • BuilderVixen.Editor.Texturing
  • FlattenerVixen.Editor.NodeGraph
  • GraphDocumentTestsVixen.Editor.NodeGraph.Tests
  • ISubGraphValuesVixen.Editor.NodeGraph
  • LayerStackKnobWidthTestsVixen.Editor.Texturing.Tests
  • LayerStackViewVixen.Editor.Texturing
  • NodeGraphCompilerVixen.Editor.NodeGraph
  • NodeGraphDocumentVixen.Editor.NodeGraph
  • NodeGraphLayoutVixen.Editor.NodeGraph
  • NodeGraphModelVixen.Editor.NodeGraph
  • NodeGraphViewVixen.Editor.NodeGraph
  • NodeInspectorVixen.Editor.NodeGraph
  • NodeInspectorDumpTestsVixen.Editor.NodeGraph.Tests
  • NodePortEditProviderVixen.Editor.NodeGraph
  • NodePortMemberVixen.Editor.NodeGraph
  • NodePortProviderTestsVixen.Editor.NodeGraph.Tests
  • NodeSearchVixen.Editor.NodeGraph
  • NodeTypeDefinitionVixen.Editor.NodeGraph
  • NodeTypeRegistryVixen.Editor.NodeGraph
  • NodeTypingTestsVixen.Editor.NodeGraph.Tests
  • PortFilterVixen.Editor.NodeGraph
  • PortKindImageTestsVixen.Editor.NodeGraph.Tests
  • RecordingVixen.Editor.NodeGraph.Tests
  • ShaderGraphPreviewVixen.Editor.ShaderGraph
  • SubGraphTestsVixen.Editor.NodeGraph.Tests
  • SubGraphsVixen.Editor.NodeGraph
  • TextureCompoundBakeDeviceTestsVixen.Editor.TextureGraph.Tests
  • TextureCompoundLibraryTestsVixen.Editor.TextureGraph.Tests
  • TextureGraphCompilerVixen.Editor.TextureGraph
  • TextureGraphDocumentTestsVixen.Editor.Texturing.Tests
  • TextureGraphParameterTestsVixen.Editor.TextureGraph.Tests
  • TextureGraphSubGraphTestsVixen.Editor.TextureGraph.Tests
  • TextureNodeResolutionTestsVixen.Editor.TextureGraph.Tests
  • TextureSettingChoiceTestsVixen.Editor.TextureGraph.Tests