Class CompositorNodeDefinition<TSimData, TSimPorts, TKernelData, TKernelPorts, TKernel> | Compositor | 0.5.0-preview.3
docs.unity3d.com
    Show / Hide Table of Contents

    Class CompositorNodeDefinition<TSimData, TSimPorts, TKernelData, TKernelPorts, TKernel>

    Inheritance
    Object
    NodeDefinition
    SimulationNodeDefinition<TSimPorts>
    SimulationKernelNodeDefinition<TSimPorts, TKernelPorts>
    NodeDefinition<TSimData, TSimPorts, TKernelData, TKernelPorts, TKernel>
    CompositorNodeDefinition<TSimData, TSimPorts, TKernelData, TKernelPorts, TKernel>
    AnimationCompositorNodeDefinition
    ConversionServiceTests.DummyCompositorNodeDefinition
    Inherited Members
    NodeDefinition<TSimData, TSimPorts, TKernelData, TKernelPorts, TKernel>.GetNodeData(NodeHandle)
    NodeDefinition<TSimData, TSimPorts, TKernelData, TKernelPorts, TKernel>.GetKernelData(NodeHandle)
    SimulationKernelNodeDefinition<TSimPorts, TKernelPorts>.KernelPorts
    SimulationNodeDefinition<TSimPorts>.SimulationPorts
    NodeDefinition.OnUpdate(UpdateContext)
    NodeDefinition.Dispose()
    NodeDefinition.GetStaticPortDescription()
    NodeDefinition.GetPortDescription(NodeHandle)
    NodeDefinition.EmitMessage<T, TNodeDefinition>(NodeHandle, MessageOutput<TNodeDefinition, T>, T)
    NodeDefinition.Set
    Unity.DataFlowGraph.NodeDefinition.BaseTraits
    NodeDefinition.HasStaticPortDescription
    Namespace: Unity.Compositor
    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
    Type Name Description
    TSimData data
    ConnectNodesCommand connection

    Destroy(DestroyContext)

    Declaration
    protected override void Destroy(DestroyContext ctx)
    Parameters
    Type Name Description
    DestroyContext ctx
    Overrides
    NodeDefinition.Destroy(DestroyContext)

    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 Name Description
    TSimData nodeData
    CompositorNodeID node
    CompositorPortID port
    T data
    Type Parameters
    Name Description
    T

    GetComponentNodePort(NodeHandle)

    Declaration
    protected abstract InputPortID GetComponentNodePort(NodeHandle handle)
    Parameters
    Type Name Description
    NodeHandle handle
    Returns
    Type Description
    InputPortID

    GetEntityContextPort(NodeHandle)

    Declaration
    public abstract InputPortID GetEntityContextPort(NodeHandle handle)
    Parameters
    Type Name Description
    NodeHandle handle
    Returns
    Type Description
    InputPortID

    GetGraphPort(NodeHandle)

    Declaration
    protected abstract InputPortID GetGraphPort(NodeHandle handle)
    Parameters
    Type Name Description
    NodeHandle handle
    Returns
    Type Description
    InputPortID

    GetInputPort(ICompositorSimulationData, CompositorNodeID, CompositorPortID)

    Declaration
    protected PortDescription.InputPort GetInputPort(ICompositorSimulationData data, CompositorNodeID Node, CompositorPortID Port)
    Parameters
    Type Name Description
    ICompositorSimulationData data
    CompositorNodeID Node
    CompositorPortID Port
    Returns
    Type Description
    PortDescription.InputPort

    GetOutputPort(ICompositorSimulationData, CompositorNodeID, CompositorPortID)

    Declaration
    protected PortDescription.OutputPort GetOutputPort(ICompositorSimulationData data, CompositorNodeID Node, CompositorPortID Port)
    Parameters
    Type Name Description
    ICompositorSimulationData data
    CompositorNodeID Node
    CompositorPortID Port
    Returns
    Type Description
    PortDescription.OutputPort

    GetPort(NodeHandle)

    Declaration
    public InputPortID GetPort(NodeHandle handle)
    Parameters
    Type Name Description
    NodeHandle handle
    Returns
    Type Description
    InputPortID
    Implements
    ITaskPort<TTask>.GetPort(NodeHandle)

    HandleMessage(MessageContext, EntityContext)

    Declaration
    public void HandleMessage(in MessageContext ctx, in EntityContext msg)
    Parameters
    Type Name Description
    MessageContext ctx
    EntityContext msg
    Implements
    IMsgHandler<TMsg>.HandleMessage(MessageContext, TMsg)

    HandleMessage(MessageContext, NodeHandle<ComponentNode>)

    Declaration
    public void HandleMessage(in MessageContext ctx, in NodeHandle<ComponentNode> msg)
    Parameters
    Type Name Description
    MessageContext ctx
    NodeHandle<ComponentNode> msg
    Implements
    IMsgHandler<TMsg>.HandleMessage(MessageContext, TMsg)

    HandleMessage(MessageContext, BlobAssetReference<Graph>)

    Declaration
    public virtual void HandleMessage(in MessageContext ctx, in BlobAssetReference<Graph> msg)
    Parameters
    Type Name Description
    MessageContext ctx
    BlobAssetReference<Graph> msg
    Implements
    IMsgHandler<TMsg>.HandleMessage(MessageContext, TMsg)

    Init(InitContext)

    Declaration
    protected override void Init(InitContext ctx)
    Parameters
    Type Name Description
    InitContext ctx
    Overrides
    NodeDefinition.Init(InitContext)

    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 Name Description
    NodeHandle handle
    DynamicBuffer<TMsg> messages
    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
    Type Name Description
    TSimData data
    CompositorNodeID node
    CompositorPortID port
    GraphVariant msg

    Explicit Interface Implementations

    ITaskPort<IComponentNodeHandler>.GetPort(NodeHandle)

    Declaration
    InputPortID ITaskPort<IComponentNodeHandler>.GetPort(NodeHandle handle)
    Parameters
    Type Name Description
    NodeHandle handle
    Returns
    Type Description
    InputPortID
    Implements
    ITaskPort<TTask>.GetPort(NodeHandle)

    ITaskPort<IGraphHandler>.GetPort(NodeHandle)

    Declaration
    InputPortID ITaskPort<IGraphHandler>.GetPort(NodeHandle handle)
    Parameters
    Type Name Description
    NodeHandle handle
    Returns
    Type Description
    InputPortID
    Implements
    ITaskPort<TTask>.GetPort(NodeHandle)
    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