Class TaskGraph
Graph-based asynchronous tasks scheduler for high-performance computing and processing.
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public class TaskGraph : Object
Constructors
TaskGraph()
Properties
Systems
Gets the list of systems.
Declaration
[Unmanaged]
public TaskGraphSystem[] Systems { get; }
Property Value
TaskGraphSystem[]
|
Methods
AddSystem(TaskGraphSystem)
Adds the system to the graph for the execution.
Declaration
[Unmanaged]
public void AddSystem(TaskGraphSystem system)
Parameters
TaskGraphSystem
system
The system to add. |
DispatchJob(TaskGraph.Delegate0, Int32)
Dispatches the job for the execution.
Declaration
[Unmanaged]
public void DispatchJob(TaskGraph.Delegate0 job, int jobCount = 1)
Parameters
TaskGraph.Delegate0
job
The job. Argument is an index of the job execution. |
System.Int32
jobCount
The job executions count. |
Remarks
Call only from system's Execute method to properly schedule job.
Execute()
Schedules the asynchronous systems execution including ordering and dependencies handling.
Declaration
[Unmanaged]
public void Execute()
RemoveSystem(TaskGraphSystem)
Removes the system from the graph.
Declaration
[Unmanaged]
public void RemoveSystem(TaskGraphSystem system)
Parameters
TaskGraphSystem
system
The system to add. |