Vixen
02b45cc4
csharp
public static class PortKinds

The rules a port's type follows.

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

Methods (6)

  • public static int Lanes(PortKind kind)

    How many float lanes a kind occupies, or zero when it is not a vector at all.

  • public static bool IsVector(PortKind kind)

    Whether a kind is one of the float vectors, which is what Dynamic resolves to.

  • public static int Fields(PortKind kind)

    How many numbers an author types into an unconnected port of a kind, or zero for none.

  • public static PortKind OfLanes(int lanes)

    The vector kind with a given number of lanes.

  • public static PortKind Resolve(ReadOnlySpan<PortKind> connected)

    What a node's dynamic ports resolve to, given what its inputs are connected to.

  • public static bool Accepts(PortKind source, PortKind target)

    Whether a value of one kind can be fed to a port of another.

Used by (6)

  • NodeGraphCompilerVixen.Editor.NodeGraph
  • NodeGraphViewVixen.Editor.NodeGraph
  • NodeInspectorVixen.Editor.NodeGraph
  • PortFilterVixen.Editor.NodeGraph
  • RecordingVixen.Editor.NodeGraph.Tests
  • ShaderGraphCompilerVixen.Editor.ShaderGraph