Class SimulationKernelNodeDefinition<TSimulationPortDefinition, TKernelPortDefinition>
Base class for a combined simulation / rendering node. The presence of IKernelData and IGraphKernel structs as nested types in derived classes is mandatory and will automatically be discovered and used to hold rendering-side node data and declare the rendering function. The presence of an INodeData struct as a nested type in derived classes will automatically be discovered and used to hold simulation-side node data and declare the simulation handlers for the node. NodeDefinition
Inheritance
Inherited Members
Namespace: Unity.DataFlowGraph
Syntax
public abstract class SimulationKernelNodeDefinition<TSimulationPortDefinition, TKernelPortDefinition> : SimulationNodeDefinition<TSimulationPortDefinition> where TSimulationPortDefinition : struct, ISimulationPortDefinition where TKernelPortDefinition : struct, IKernelPortDefinition
Type Parameters
Name | Description |
---|---|
TSimulationPortDefinition | |
TKernelPortDefinition |
Fields
KernelPorts
The kernel port definition of this node's public contract. Use this to connect together data flow in the rendering part of the graph using the various methods of NodeSetAPI which require a port.
This is the concrete static instance of the IKernelPortDefinition struct used in the
declaration of a node's Unity.DataFlowGraph.NodeDefinition`5.
Declaration
public static readonly TKernelPortDefinition KernelPorts
Field Value
Type | Description |
---|---|
TKernelPortDefinition |