Class NodeSet
Syntax
public class NodeSet : IDisposable
Constructors
NodeSet()
Construct a node set. Remember to dispose it.
Dispose()
Declaration
NodeSet(JobComponentSystem)
Initializes this NodeSet in a mode that's compatible with running together with ECS,
through the use of ComponentNodes.
The hostSystem
and this instance are tied together from this point, and you must
update this set using the Update(JobHandle) function.
See also NodeSet().
Declaration
public NodeSet(JobComponentSystem hostSystem)
Parameters
Type |
Name |
Description |
JobComponentSystem |
hostSystem |
|
Exceptions
Properties
RendererModel
Declaration
public NodeSet.RenderExecutionModel RendererModel { get; set; }
Property Value
Methods
Adapt(NodeHandle)
Declaration
public NodeAdapter Adapt(NodeHandle n)
Parameters
Returns
Adapt<TDefinition>(NodeHandle<TDefinition>)
Declaration
public NodeAdapter<TDefinition> Adapt<TDefinition>(NodeHandle<TDefinition> n)
where TDefinition : NodeDefinition, new()
Parameters
Returns
Type Parameters
Name |
Description |
TDefinition |
|
As<TDefinition>(NodeHandle)
Declaration
public NodeHandle<TDefinition>? As<TDefinition>(NodeHandle handle)
where TDefinition : NodeDefinition
Parameters
Returns
Type Parameters
Name |
Description |
TDefinition |
|
Exceptions
CastHandle<TDefinition>(NodeHandle)
Declaration
public NodeHandle<TDefinition> CastHandle<TDefinition>(NodeHandle handle)
where TDefinition : NodeDefinition
Parameters
Returns
Type Parameters
Name |
Description |
TDefinition |
|
Exceptions
Declaration
public void Connect(NodeHandle sourceHandle, OutputPortID sourcePort, NodeHandle destHandle, InputPortID destinationPortArray, int index, NodeSet.ConnectionType dataConnectionType = NodeSet.ConnectionType.Normal)
Parameters
Exceptions
Create a persistent connection between an output port on the source node and an input port of matching type
on the destination node.
Declaration
public void Connect(NodeHandle sourceHandle, OutputPortID sourcePort, NodeHandle destHandle, InputPortID destinationPort, NodeSet.ConnectionType dataConnectionType = NodeSet.ConnectionType.Normal)
Parameters
Exceptions
Connect<TTask>(NodeHandle, OutputPortID, NodeInterfaceLink<TTask>)
Declaration
public void Connect<TTask>(NodeHandle sourceHandle, OutputPortID sourcePort, NodeInterfaceLink<TTask> destHandle)
where TTask : ITaskPort<TTask>
Parameters
Type Parameters
Declaration
public void Connect<TType, TSource, TDestination>(NodeHandle<TSource> sourceHandle, DataOutput<TSource, TType> sourcePort, NodeHandle<TDestination> destHandle, DataInput<TDestination, TType> destPort, NodeSet.ConnectionType connectionType = NodeSet.ConnectionType.Normal)
where TType : struct where TSource : NodeDefinition where TDestination : NodeDefinition
Parameters
Type Parameters
Name |
Description |
TType |
|
TSource |
|
TDestination |
|
Declaration
public void Connect<TType, TSource, TDestination>(NodeHandle<TSource> sourceHandle, DataOutput<TSource, TType> sourcePort, NodeHandle<TDestination> destHandle, PortArray<DataInput<TDestination, TType>> destPortArray, int index, NodeSet.ConnectionType connectionType = NodeSet.ConnectionType.Normal)
where TType : struct where TSource : NodeDefinition where TDestination : NodeDefinition
Parameters
Type Parameters
Name |
Description |
TType |
|
TSource |
|
TDestination |
|
Exceptions
Declaration
public void Connect<TMsg, TSource, TDestination>(NodeHandle<TSource> sourceHandle, MessageOutput<TSource, TMsg> sourcePort, NodeHandle<TDestination> destHandle, DataInput<TDestination, TMsg> destPort)
where TMsg : struct where TSource : NodeDefinition where TDestination : NodeDefinition
Parameters
Type Parameters
Name |
Description |
TMsg |
|
TSource |
|
TDestination |
|
Declaration
public void Connect<TMsg, TSource, TDestination>(NodeHandle<TSource> sourceHandle, MessageOutput<TSource, TMsg> sourcePort, NodeHandle<TDestination> destHandle, MessageInput<TDestination, TMsg> destPort)
where TSource : NodeDefinition where TDestination : NodeDefinition, IMsgHandler<TMsg>
Parameters
Type Parameters
Name |
Description |
TMsg |
|
TSource |
|
TDestination |
|
Declaration
public void Connect<TMsg, TSource, TDestination>(NodeHandle<TSource> sourceHandle, MessageOutput<TSource, TMsg> sourcePort, NodeHandle<TDestination> destHandle, PortArray<DataInput<TDestination, TMsg>> destPortArray, int index)
where TMsg : struct where TSource : NodeDefinition where TDestination : NodeDefinition
Parameters
Type Parameters
Name |
Description |
TMsg |
|
TSource |
|
TDestination |
|
Exceptions
Declaration
public void Connect<TMsg, TSource, TDestination>(NodeHandle<TSource> sourceHandle, MessageOutput<TSource, TMsg> sourcePort, NodeHandle<TDestination> destHandle, PortArray<MessageInput<TDestination, TMsg>> destPortArray, int index)
where TSource : NodeDefinition where TDestination : NodeDefinition, IMsgHandler<TMsg>
Parameters
Type Parameters
Name |
Description |
TMsg |
|
TSource |
|
TDestination |
|
Exceptions
Connect<TTask, TType, TSource, TDestination>(NodeHandle<TSource>, DataOutput<TSource, TType>, NodeInterfaceLink<TTask, TDestination>)
Declaration
public void Connect<TTask, TType, TSource, TDestination>(NodeHandle<TSource> sourceHandle, DataOutput<TSource, TType> sourcePort, NodeInterfaceLink<TTask, TDestination> destHandle)
where TTask : ITaskPort<TTask> where TType : struct where TSource : NodeDefinition where TDestination : NodeDefinition, TTask, new()
Parameters
Type Parameters
Name |
Description |
TTask |
|
TType |
|
TSource |
|
TDestination |
|
Declaration
public void Connect<TDSLHandler, TDSL, TSource, TDestination>(NodeHandle<TSource> sourceHandle, DSLOutput<TSource, TDSLHandler, TDSL> sourcePort, NodeHandle<TDestination> destHandle, DSLInput<TDestination, TDSLHandler, TDSL> destPort)
where TDSLHandler : DSLHandler<TDSL>, new()
where TDSL : class where TSource : NodeDefinition, TDSL where TDestination : NodeDefinition, TDSL
Parameters
Type |
Name |
Description |
NodeHandle<TSource> |
sourceHandle |
|
DSLOutput<TSource, TDSLHandler, TDSL> |
sourcePort |
|
NodeHandle<TDestination> |
destHandle |
|
DSLInput<TDestination, TDSLHandler, TDSL> |
destPort |
|
Type Parameters
Name |
Description |
TDSLHandler |
|
TDSL |
|
TSource |
|
TDestination |
|
Connect<TTask, TMsg, TSource, TDestination>(NodeHandle<TSource>, MessageOutput<TSource, TMsg>, NodeInterfaceLink<TTask, TDestination>)
Declaration
public void Connect<TTask, TMsg, TSource, TDestination>(NodeHandle<TSource> sourceHandle, MessageOutput<TSource, TMsg> sourcePort, NodeInterfaceLink<TTask, TDestination> destHandle)
where TTask : ITaskPort<TTask> where TSource : NodeDefinition where TDestination : NodeDefinition, TTask, IMsgHandler<TMsg>, new()
Parameters
Type Parameters
Name |
Description |
TTask |
|
TMsg |
|
TSource |
|
TDestination |
|
Connect<TTask, TDSLHandler, TDSL, TSource, TDestination>(NodeHandle<TSource>, DSLOutput<TSource, TDSLHandler, TDSL>, NodeInterfaceLink<TTask, TDestination>)
Declaration
public void Connect<TTask, TDSLHandler, TDSL, TSource, TDestination>(NodeHandle<TSource> sourceHandle, DSLOutput<TSource, TDSLHandler, TDSL> sourcePort, NodeInterfaceLink<TTask, TDestination> destHandle)
where TTask : ITaskPort<TTask> where TDSLHandler : DSLHandler<TDSL>, new()
where TDSL : class where TSource : NodeDefinition, TDSL where TDestination : NodeDefinition, TTask, new()
Parameters
Type Parameters
Name |
Description |
TTask |
|
TDSLHandler |
|
TDSL |
|
TSource |
|
TDestination |
|
Create<TDefinition>()
Instantiates a particular type of node. If this is the first time
this node type is created, the TDefinition
is instantiated as well.
Remember to destroy the node again.
Destroy(NodeHandle)
Declaration
public NodeHandle<TDefinition> Create<TDefinition>()
where TDefinition : NodeDefinition, new()
Returns
Type |
Description |
NodeHandle<TDefinition> |
A handle to a node, that uniquely identifies the instantiated node.
The handle returned is "strongly" typed in that it is verified to
refer to such a node type - see NodeHandle<TDefinition>
for more information.
This handle is the primary interface for all APIs on nodes.
After the node has been destroyed, any copy of this handle is
invalidated, see Exists(NodeHandle).
|
Type Parameters
Name |
Description |
TDefinition |
|
Exceptions
CreateComponentNode(Entity)
Declaration
public NodeHandle<ComponentNode> CreateComponentNode(Entity entity)
Parameters
Type |
Name |
Description |
Entity |
entity |
|
Returns
Exceptions
CreateGraphValue<T>(NodeHandle, OutputPortID)
Declaration
public GraphValue<T> CreateGraphValue<T>(NodeHandle handle, OutputPortID output)
where T : struct
Parameters
Returns
Type Parameters
Exceptions
CreateGraphValue<T, TDefinition>(NodeHandle<TDefinition>, DataOutput<TDefinition, T>)
Declaration
public GraphValue<T> CreateGraphValue<T, TDefinition>(NodeHandle<TDefinition> node, DataOutput<TDefinition, T> output)
where T : struct where TDefinition : NodeDefinition
Parameters
Returns
Type Parameters
Name |
Description |
T |
|
TDefinition |
|
Remarks
Exceptions
See Also
Destroy(NodeHandle)
Declaration
public void Destroy(NodeHandle handle)
Parameters
Exceptions
Destroy(NodeHandle[])
Declaration
public void Destroy(params NodeHandle[] handles)
Parameters
Removes a previously made connection between an output port on the source node and an input port on the
destination node.
Declaration
public void Disconnect(NodeHandle sourceHandle, OutputPortID sourcePort, NodeHandle destHandle, InputPortID destinationPort)
Parameters
Exceptions
Declaration
public void Disconnect(NodeHandle sourceHandle, OutputPortID sourcePort, NodeHandle destHandle, InputPortID destinationPortArray, int index)
Parameters
Exceptions
Disconnect<TTask>(NodeHandle, OutputPortID, NodeInterfaceLink<TTask>)
Declaration
public void Disconnect<TTask>(NodeHandle sourceHandle, OutputPortID sourcePort, NodeInterfaceLink<TTask> destHandle)
where TTask : ITaskPort<TTask>
Parameters
Type Parameters
Declaration
public void Disconnect<TType, TSource, TDestination>(NodeHandle<TSource> sourceHandle, DataOutput<TSource, TType> sourcePort, NodeHandle<TDestination> destHandle, DataInput<TDestination, TType> destPort)
where TType : struct where TSource : NodeDefinition where TDestination : NodeDefinition
Parameters
Type Parameters
Name |
Description |
TType |
|
TSource |
|
TDestination |
|
Declaration
public void Disconnect<TType, TSource, TDestination>(NodeHandle<TSource> sourceHandle, DataOutput<TSource, TType> sourcePort, NodeHandle<TDestination> destHandle, PortArray<DataInput<TDestination, TType>> destPortArray, int index)
where TType : struct where TSource : NodeDefinition where TDestination : NodeDefinition
Parameters
Type Parameters
Name |
Description |
TType |
|
TSource |
|
TDestination |
|
Exceptions
Declaration
public void Disconnect<TMsg, TSource, TDestination>(NodeHandle<TSource> sourceHandle, MessageOutput<TSource, TMsg> sourcePort, NodeHandle<TDestination> destHandle, DataInput<TDestination, TMsg> destPort)
where TMsg : struct where TSource : NodeDefinition where TDestination : NodeDefinition
Parameters
Type Parameters
Name |
Description |
TMsg |
|
TSource |
|
TDestination |
|
Declaration
public void Disconnect<TMsg, TSource, TDestination>(NodeHandle<TSource> sourceHandle, MessageOutput<TSource, TMsg> sourcePort, NodeHandle<TDestination> destHandle, MessageInput<TDestination, TMsg> destPort)
where TSource : NodeDefinition where TDestination : NodeDefinition, IMsgHandler<TMsg>
Parameters
Type Parameters
Name |
Description |
TMsg |
|
TSource |
|
TDestination |
|
Declaration
public void Disconnect<TMsg, TSource, TDestination>(NodeHandle<TSource> sourceHandle, MessageOutput<TSource, TMsg> sourcePort, NodeHandle<TDestination> destHandle, PortArray<DataInput<TDestination, TMsg>> destPortArray, int index)
where TMsg : struct where TSource : NodeDefinition where TDestination : NodeDefinition
Parameters
Type Parameters
Name |
Description |
TMsg |
|
TSource |
|
TDestination |
|
Exceptions
Declaration
public void Disconnect<TMsg, TSource, TDestination>(NodeHandle<TSource> sourceHandle, MessageOutput<TSource, TMsg> sourcePort, NodeHandle<TDestination> destHandle, PortArray<MessageInput<TDestination, TMsg>> destPortArray, int index)
where TSource : NodeDefinition where TDestination : NodeDefinition, IMsgHandler<TMsg>
Parameters
Type Parameters
Name |
Description |
TMsg |
|
TSource |
|
TDestination |
|
Exceptions
Disconnect<TTask, TType, TSource, TDestination>(NodeHandle<TSource>, DataOutput<TSource, TType>, NodeInterfaceLink<TTask, TDestination>)
Declaration
public void Disconnect<TTask, TType, TSource, TDestination>(NodeHandle<TSource> sourceHandle, DataOutput<TSource, TType> sourcePort, NodeInterfaceLink<TTask, TDestination> destHandle)
where TTask : ITaskPort<TTask> where TType : struct where TSource : NodeDefinition where TDestination : NodeDefinition, TTask, new()
Parameters
Type Parameters
Name |
Description |
TTask |
|
TType |
|
TSource |
|
TDestination |
|
Declaration
public void Disconnect<TDSLHandler, TDSL, TSource, TDestination>(NodeHandle<TSource> sourceHandle, DSLOutput<TSource, TDSLHandler, TDSL> sourcePort, NodeHandle<TDestination> destHandle, DSLInput<TDestination, TDSLHandler, TDSL> destPort)
where TDSLHandler : DSLHandler<TDSL>, new()
where TDSL : class where TSource : NodeDefinition, TDSL where TDestination : NodeDefinition, TDSL
Parameters
Type |
Name |
Description |
NodeHandle<TSource> |
sourceHandle |
|
DSLOutput<TSource, TDSLHandler, TDSL> |
sourcePort |
|
NodeHandle<TDestination> |
destHandle |
|
DSLInput<TDestination, TDSLHandler, TDSL> |
destPort |
|
Type Parameters
Name |
Description |
TDSLHandler |
|
TDSL |
|
TSource |
|
TDestination |
|
Disconnect<TTask, TMsg, TSource, TDestination>(NodeHandle<TSource>, MessageOutput<TSource, TMsg>, NodeInterfaceLink<TTask, TDestination>)
Declaration
public void Disconnect<TTask, TMsg, TSource, TDestination>(NodeHandle<TSource> sourceHandle, MessageOutput<TSource, TMsg> sourcePort, NodeInterfaceLink<TTask, TDestination> destHandle)
where TTask : ITaskPort<TTask> where TSource : NodeDefinition where TDestination : NodeDefinition, TTask, IMsgHandler<TMsg>, new()
Parameters
Type Parameters
Name |
Description |
TTask |
|
TMsg |
|
TSource |
|
TDestination |
|
Disconnect<TTask, TDSLHandler, TDSL, TSource, TDestination>(NodeHandle<TSource>, DSLOutput<TSource, TDSLHandler, TDSL>, NodeInterfaceLink<TTask, TDestination>)
Declaration
public void Disconnect<TTask, TDSLHandler, TDSL, TSource, TDestination>(NodeHandle<TSource> sourceHandle, DSLOutput<TSource, TDSLHandler, TDSL> sourcePort, NodeInterfaceLink<TTask, TDestination> destHandle)
where TTask : ITaskPort<TTask> where TDSLHandler : DSLHandler<TDSL>, new()
where TDSL : class where TSource : NodeDefinition, TDSL where TDestination : NodeDefinition, TDSL, TTask, new()
Parameters
Type Parameters
Name |
Description |
TTask |
|
TDSLHandler |
|
TDSL |
|
TSource |
|
TDestination |
|
Declaration
public void DisconnectAndRetainValue(NodeHandle sourceHandle, OutputPortID sourcePort, NodeHandle destHandle, InputPortID destinationPort)
Parameters
Exceptions
Declaration
public void DisconnectAndRetainValue(NodeHandle sourceHandle, OutputPortID sourcePort, NodeHandle destHandle, InputPortID destinationPortArray, int index)
Parameters
Exceptions
Declaration
public void DisconnectAndRetainValue<TType, TSource, TDestination>(NodeHandle<TSource> sourceHandle, DataOutput<TSource, TType> sourcePort, NodeHandle<TDestination> destHandle, DataInput<TDestination, TType> destPort)
where TType : struct where TSource : NodeDefinition, new()
where TDestination : NodeDefinition, new()
Parameters
Type Parameters
Name |
Description |
TType |
|
TSource |
|
TDestination |
|
Declaration
public void DisconnectAndRetainValue<TType, TSource, TDestination>(NodeHandle<TSource> sourceHandle, DataOutput<TSource, TType> sourcePort, NodeHandle<TDestination> destHandle, PortArray<DataInput<TDestination, TType>> destPortArray, int index)
where TType : struct where TSource : NodeDefinition, new()
where TDestination : NodeDefinition, new()
Parameters
Type Parameters
Name |
Description |
TType |
|
TSource |
|
TDestination |
|
Exceptions
Dispose()
Cleans up the node set, and releasing any resources associated with it.
Declaration
Implements
Exists(NodeHandle)
Tests whether the supplied node handle refers to a currently valid
node instance.
Declaration
public bool Exists(NodeHandle handle)
Parameters
Returns
Finalize()
Declaration
protected void Finalize()
GetDefinition(NodeHandle)
Declaration
public NodeDefinition GetDefinition(NodeHandle handle)
Parameters
Returns
Exceptions
Type |
Condition |
ArgumentException |
Thrown if the node handle does not refer to a valid instance.
|
GetDefinition<TDefinition>()
Looks up the specified node definition, creating it if it
doesn't exist already.
Declaration
public TDefinition GetDefinition<TDefinition>()
where TDefinition : NodeDefinition, new()
Returns
Type |
Description |
TDefinition |
|
Type Parameters
Name |
Description |
TDefinition |
|
Exceptions
GetDefinition<TDefinition>(NodeHandle<TDefinition>)
Declaration
public TDefinition GetDefinition<TDefinition>(NodeHandle<TDefinition> handle)
where TDefinition : NodeDefinition, new()
Parameters
Type |
Name |
Description |
NodeHandle<TDefinition> |
handle |
|
Returns
Type |
Description |
TDefinition |
|
Type Parameters
Name |
Description |
TDefinition |
|
Exceptions
Type |
Condition |
ArgumentException |
Thrown if the node handle does not refer to a valid instance.
|
GetDSLHandler<TDSLHandler>()
Declaration
public TDSLHandler GetDSLHandler<TDSLHandler>()
where TDSLHandler : class, IDSLHandler
Returns
Type |
Description |
TDSLHandler |
|
Type Parameters
Name |
Description |
TDSLHandler |
|
GetFunctionality(NodeHandle)
Declaration
[Obsolete("Renamed to GetDefinition.", true)]
public NodeDefinition GetFunctionality(NodeHandle handle)
Parameters
Returns
GetFunctionality<T>()
Declaration
[Obsolete("Renamed to GetDefinition.", true)]
public NodeDefinition GetFunctionality<T>()
Returns
Type Parameters
GetFunctionality<TDefinition>(NodeHandle<TDefinition>)
Declaration
[Obsolete("Renamed to GetDefinition.", true)]
public TDefinition GetFunctionality<TDefinition>(NodeHandle<TDefinition> handle)
where TDefinition : NodeDefinition, new()
Parameters
Type |
Name |
Description |
NodeHandle<TDefinition> |
handle |
|
Returns
Type |
Description |
TDefinition |
|
Type Parameters
Name |
Description |
TDefinition |
|
GetGraphValueResolver(out JobHandle)
Returns a GraphValueResolver that can be used to asynchronously
read back graph state and buffers in a job. Put the resolver on a job ("consumer"),
and schedule it against the parameter resultDependency
.
Any job handles referencing the resolver must to be submitted back to the node
set through InjectDependencyFromConsumer(JobHandle).
Declaration
public GraphValueResolver GetGraphValueResolver(out JobHandle resultDependency)
Parameters
Type |
Name |
Description |
JobHandle |
resultDependency |
Contains an aggregation of dependencies from the last Update()
for any created graph values.
|
Returns
Remarks
GetValueBlocking<T>(GraphValue<T>)
Declaration
public T GetValueBlocking<T>(GraphValue<T> graphValue)
where T : struct
Parameters
Returns
Type Parameters
Exceptions
Type |
Condition |
ObjectDisposedException |
Thrown if the graph value is invalid or disposed, or the referenced node has been destroyed
|
InjectDependencyFromConsumer(JobHandle)
Injects external dependencies into this node set, so the next Update()
synchronizes against consumers of any data from this node set.
Declaration
public void InjectDependencyFromConsumer(JobHandle handle)
Parameters
Type |
Name |
Description |
JobHandle |
handle |
|
See Also
Is<TDefinition>(NodeHandle)
Tests whether the node instance referred to by the handle
is a TDefinition
.
Declaration
public bool Is<TDefinition>(NodeHandle handle)
where TDefinition : NodeDefinition
Parameters
Returns
Type Parameters
Name |
Description |
TDefinition |
|
ReleaseGraphValue<T>(GraphValue<T>)
Declaration
public void ReleaseGraphValue<T>(GraphValue<T> graphValue)
Parameters
Type Parameters
Exceptions
Send a message of a specific type to a message input port on a node.
Declaration
public void SendMessage<TMsg>(NodeHandle handle, InputPortID port, in TMsg msg)
Parameters
Type Parameters
Exceptions
Overload of
targeting a port array with an index parameter.
Declaration
public void SendMessage<TMsg>(NodeHandle handle, InputPortID portArray, int index, in TMsg msg)
Parameters
Type Parameters
Exceptions
Declaration
public void SendMessage<TMsg, TDefinition>(NodeHandle<TDefinition> handle, MessageInput<TDefinition, TMsg> port, in TMsg msg)
where TDefinition : NodeDefinition, IMsgHandler<TMsg>
Parameters
Type Parameters
Name |
Description |
TMsg |
|
TDefinition |
|
Overload of
targeting a port array with an index parameter.
Declaration
public void SendMessage<TMsg, TDefinition>(NodeHandle<TDefinition> handle, PortArray<MessageInput<TDefinition, TMsg>> portArray, int index, in TMsg msg)
where TDefinition : NodeDefinition, IMsgHandler<TMsg>
Parameters
Type Parameters
Name |
Description |
TMsg |
|
TDefinition |
|
Exceptions
SendMessage<TTask, TMsg>(NodeInterfaceLink<TTask>, TMsg)
Declaration
public void SendMessage<TTask, TMsg>(NodeInterfaceLink<TTask> handle, in TMsg msg)
where TTask : ITaskPort<TTask>
Parameters
Type Parameters
Name |
Description |
TTask |
|
TMsg |
|
SendMessage<TTask, TMsg, TDestination>(NodeInterfaceLink<TTask, TDestination>, TMsg)
Declaration
public void SendMessage<TTask, TMsg, TDestination>(NodeInterfaceLink<TTask, TDestination> handle, in TMsg msg)
where TTask : ITaskPort<TTask> where TDestination : NodeDefinition, TTask, IMsgHandler<TMsg>, new()
Parameters
Type Parameters
Name |
Description |
TTask |
|
TMsg |
|
TDestination |
|
SetBufferSize<TType>(NodeHandle, OutputPortID, TType)
Declaration
public void SetBufferSize<TType>(NodeHandle handle, OutputPortID port, in TType requestedSize)
where TType : struct
Parameters
Type Parameters
Exceptions
SetBufferSize<TDefinition, TType>(NodeHandle<TDefinition>, DataOutput<TDefinition, TType>, TType)
Declaration
public void SetBufferSize<TDefinition, TType>(NodeHandle<TDefinition> handle, DataOutput<TDefinition, TType> port, in TType requestedSize)
where TDefinition : NodeDefinition where TType : struct
Parameters
Type |
Name |
Description |
NodeHandle<TDefinition> |
handle |
|
DataOutput<TDefinition, TType> |
port |
|
TType |
requestedSize |
|
Type Parameters
Name |
Description |
TDefinition |
|
TType |
|
Exceptions
Sets the data on an unconnected data input port on a node.
The data will persist on the input until a connection is made to that input, or, it replaced by another call to .
Declaration
public void SetData<TType>(NodeHandle handle, InputPortID port, in TType data)
where TType : struct
Parameters
Type Parameters
Exceptions
Overload of
targeting a port array with an index parameter.
Declaration
public void SetData<TType>(NodeHandle handle, InputPortID portArray, int index, in TType data)
where TType : struct
Parameters
Type Parameters
Exceptions
Declaration
public void SetData<TType, TDefinition>(NodeHandle<TDefinition> handle, DataInput<TDefinition, TType> port, in TType data)
where TType : struct where TDefinition : NodeDefinition
Parameters
Type |
Name |
Description |
NodeHandle<TDefinition> |
handle |
|
DataInput<TDefinition, TType> |
port |
|
TType |
data |
|
Type Parameters
Name |
Description |
TType |
|
TDefinition |
|
Overload of
targeting a port array with an index parameter.
Declaration
public void SetData<TType, TDefinition>(NodeHandle<TDefinition> handle, PortArray<DataInput<TDefinition, TType>> portArray, int index, in TType data)
where TType : struct where TDefinition : NodeDefinition
Parameters
Type Parameters
Name |
Description |
TType |
|
TDefinition |
|
Exceptions
Set the size of an array of ports.
Declaration
public void SetPortArraySize(NodeHandle handle, InputPortID portArray, int size)
Parameters
Type |
Name |
Description |
NodeHandle |
handle |
Node on which to set the size of the array of ports
|
InputPortID |
portArray |
Port array to be modified
|
Int32 |
size |
Desired array size
|
Exceptions
Type |
Condition |
InvalidOperationException |
Thrown if the given port is not a , if downsizing the array would invalidate existing
connections, or if the given size exceeds
|
Set the size of an array of data ports.
Declaration
public void SetPortArraySize<TDefinition, TType>(NodeHandle<TDefinition> handle, PortArray<DataInput<TDefinition, TType>> portArray, int size)
where TDefinition : NodeDefinition where TType : struct
Parameters
Type |
Name |
Description |
NodeHandle<TDefinition> |
handle |
Node on which to set the size of the array of ports
|
PortArray<DataInput<TDefinition, TType>> |
portArray |
Data port array to be modified
|
Int32 |
size |
Desired array size
|
Type Parameters
Name |
Description |
TDefinition |
|
TType |
|
Exceptions
Type |
Condition |
InvalidOperationException |
If downsizing the array would invalidate existing connections, or if the given size exceeds
|
Set the size of an array of message ports.
Declaration
public void SetPortArraySize<TDefinition, TMsg>(NodeHandle<TDefinition> handle, PortArray<MessageInput<TDefinition, TMsg>> portArray, int size)
where TDefinition : NodeDefinition, IMsgHandler<TMsg>
Parameters
Type |
Name |
Description |
NodeHandle<TDefinition> |
handle |
Node on which to set the size of the array of ports
|
PortArray<MessageInput<TDefinition, TMsg>> |
portArray |
Message port array to be modified
|
Int32 |
size |
Desired array size
|
Type Parameters
Name |
Description |
TDefinition |
|
TMsg |
|
Exceptions
Type |
Condition |
InvalidOperationException |
If downsizing the array would invalidate existing connections, or if the given size exceeds
|
Update()
Updates the node set in two phases:
- A message phase (simulation) where nodes are updated and messages
are passed around
- Aligning the simulation world and the rendering world and initiate
the rendering.
NodeSet.RenderExecutionModel
Declaration
Exceptions
Update(JobHandle)
Overload of Update(). Use this function inside a .
Declaration
public JobHandle Update(JobHandle inputDeps)
Parameters
Type |
Name |
Description |
JobHandle |
inputDeps |
Input dependencies derived from , pass the
input dependencies into this function.
|
Returns
Type |
Description |
JobHandle |
A that should be returned or included in a dependency chain inside
.
|
Remarks
Exceptions
ValueExists<T>(GraphValue<T>)
Tests whether the supplied graph value exists.
Declaration
public bool ValueExists<T>(GraphValue<T> graphValue)
Parameters
Returns
Type Parameters