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
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)