Class CompositorNodeDefinition<TSimData, TSimPorts, TKernelData, TKernelPorts, TKernel>
Inheritance
NodeDefinition<TSimData, TSimPorts, TKernelData, TKernelPorts, TKernel>
CompositorNodeDefinition<TSimData, TSimPorts, TKernelData, TKernelPorts, TKernel>
Inherited Members
Unity.DataFlowGraph.NodeDefinition.BaseTraits
Syntax
public abstract class CompositorNodeDefinition<TSimData, TSimPorts, TKernelData, TKernelPorts, TKernel> : NodeDefinition<TSimData, TSimPorts, TKernelData, TKernelPorts, TKernel>, IGraphHandler, ITaskPortMsgHandler<IGraphHandler, BlobAssetReference<Graph>>, ITaskPort<IGraphHandler>, IEntityContextHandler, ITaskPortMsgHandler<IEntityContextHandler, EntityContext>, ITaskPort<IEntityContextHandler>, IMsgHandler<EntityContext>, IComponentNodeHandler, ITaskPortMsgHandler<IComponentNodeHandler, NodeHandle<ComponentNode>>, ITaskPort<IComponentNodeHandler>, IMsgHandler<NodeHandle<ComponentNode>>, IMsgHandler<BlobAssetReference<Graph>> where TSimData : struct, INodeData, ICompositorSimulationData where TSimPorts : struct, ISimulationPortDefinition where TKernelData : struct, IKernelData where TKernelPorts : struct, IKernelPortDefinition where TKernel : struct, IGraphKernel<TKernelData, TKernelPorts>
Type Parameters
Name |
Description |
TSimData |
|
TSimPorts |
|
TKernelData |
|
TKernelPorts |
|
TKernel |
|
Methods
Connect(ref TSimData, ConnectNodesCommand)
Declaration
protected void Connect(ref TSimData data, ConnectNodesCommand connection)
Parameters
Destroy(DestroyContext)
Declaration
protected override void Destroy(DestroyContext ctx)
Parameters
Overrides
Dispatch<T>(ref TSimData, CompositorNodeID, CompositorPortID, T)
Declaration
protected void Dispatch<T>(ref TSimData nodeData, CompositorNodeID node, CompositorPortID port, in T data)
where T : struct
Parameters
Type Parameters
GetComponentNodePort(NodeHandle)
Declaration
protected abstract InputPortID GetComponentNodePort(NodeHandle handle)
Parameters
Returns
GetEntityContextPort(NodeHandle)
Declaration
public abstract InputPortID GetEntityContextPort(NodeHandle handle)
Parameters
Returns
GetGraphPort(NodeHandle)
Declaration
protected abstract InputPortID GetGraphPort(NodeHandle handle)
Parameters
Returns
Declaration
protected PortDescription.InputPort GetInputPort(ICompositorSimulationData data, CompositorNodeID Node, CompositorPortID Port)
Parameters
Returns
GetOutputPort(ICompositorSimulationData, CompositorNodeID, CompositorPortID)
Declaration
protected PortDescription.OutputPort GetOutputPort(ICompositorSimulationData data, CompositorNodeID Node, CompositorPortID Port)
Parameters
Returns
GetPort(NodeHandle)
Declaration
public InputPortID GetPort(NodeHandle handle)
Parameters
Returns
Implements
HandleMessage(MessageContext, EntityContext)
Declaration
public void HandleMessage(in MessageContext ctx, in EntityContext msg)
Parameters
Implements
HandleMessage(MessageContext, NodeHandle<ComponentNode>)
Declaration
public void HandleMessage(in MessageContext ctx, in NodeHandle<ComponentNode> msg)
Parameters
Implements
HandleMessage(MessageContext, BlobAssetReference<Graph>)
Declaration
public virtual void HandleMessage(in MessageContext ctx, in BlobAssetReference<Graph> msg)
Parameters
Implements
Init(InitContext)
Declaration
protected override void Init(InitContext ctx)
Parameters
Overrides
SendMessage<TMsg, TValue>(NodeHandle, TMsg)
Declaration
protected void SendMessage<TMsg, TValue>(NodeHandle handle, TMsg message)
where TMsg : struct, ICompositorTarget<TValue> where TValue : struct
Parameters
Type |
Name |
Description |
NodeHandle |
handle |
|
TMsg |
message |
|
Type Parameters
Name |
Description |
TMsg |
|
TValue |
|
SendMessages<TMsg, TValue>(NodeHandle, DynamicBuffer<TMsg>)
Declaration
protected void SendMessages<TMsg, TValue>(NodeHandle handle, DynamicBuffer<TMsg> messages)
where TMsg : struct, ICompositorTarget<TValue> where TValue : struct
Parameters
Type Parameters
Name |
Description |
TMsg |
|
TValue |
|
SendVariantMessage(ref TSimData, CompositorNodeID, CompositorPortID, GraphVariant)
Declaration
protected void SendVariantMessage(ref TSimData data, CompositorNodeID node, CompositorPortID port, GraphVariant msg)
Parameters
Explicit Interface Implementations
ITaskPort<IComponentNodeHandler>.GetPort(NodeHandle)
Declaration
InputPortID ITaskPort<IComponentNodeHandler>.GetPort(NodeHandle handle)
Parameters
Returns
Implements
ITaskPort<IGraphHandler>.GetPort(NodeHandle)
Declaration
InputPortID ITaskPort<IGraphHandler>.GetPort(NodeHandle handle)
Parameters
Returns
Implements