Struct DataInput<TDefinition, TType> | Data Flow Graph | 0.16.0-preview.3
docs.unity3d.com
    Show / Hide Table of Contents

    Struct DataInput<TDefinition, TType>

    Declaration of a specific data input connection port for a given node type.

    These are used as fields within an IKernelPortDefinition struct implementation (see ).

    Connections and data appearing on these types of ports is only available in the node's implementation of Execute(RenderContext, TKernelData, ref TKernelPortDefinition) and accessible via the given RenderContext instance.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.DataFlowGraph
    Syntax
    public struct DataInput<TDefinition, TType> : IIndexablePort where TDefinition : NodeDefinition where TType : struct
    Type Parameters
    Name Description
    TDefinition

    The NodeDefinition<TNodeData, TSimulationPortDefinition, TKernelData, TKernelPortDefinition, TKernel> to which this port is associated.

    TType

    Operators

    Explicit(DataInput<TDefinition, TType> to InputPortID)

    Converts the input to an untyped InputPortID.

    Declaration
    public static explicit operator InputPortID(DataInput<TDefinition, TType> input)
    Parameters
    Type Name Description
    DataInput<TDefinition, TType> input
    Returns
    Type Description
    InputPortID
    Remarks

    Has an undefined return value when invoked inside an Execute(RenderContext, TKernelData, ref TKernelPortDefinition)

    In This Article
    • Operators
      • Explicit(DataInput<TDefinition, TType> to InputPortID)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023