Class TaskGraphSystem
System that can generate work into Task Graph for asynchronous execution.
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public abstract class TaskGraphSystem : Object
Constructors
TaskGraphSystem()
Properties
Order
The execution order of the system (systems with higher order are executed later, lower first).
Declaration
[Unmanaged]
public int Order { get; set; }
Property Value
System.Int32
|
Methods
AddDependency(TaskGraphSystem)
Adds the dependency on the system execution. Before this system can be executed the given dependant system has to be executed first.
Declaration
[Unmanaged]
public void AddDependency(TaskGraphSystem system)
Parameters
TaskGraphSystem
system
The system to depend on. |
Execute(TaskGraph)
Executes the system logic and schedules the asynchronous work.
Declaration
[Unmanaged]
public virtual void Execute(TaskGraph graph)
Parameters
TaskGraph
graph
The graph executing the system. |
PostExecute(TaskGraph)
Called after executing all systems of the graph. Can be used to cleanup data (synchronous).
Declaration
[Unmanaged]
public virtual void PostExecute(TaskGraph graph)
Parameters
TaskGraph
graph
The graph executing the system. |
PreExecute(TaskGraph)
Called before executing any systems of the graph. Can be used to initialize data (synchronous).
Declaration
[Unmanaged]
public virtual void PreExecute(TaskGraph graph)
Parameters
TaskGraph
graph
The graph executing the system. |
RemoveDependency(TaskGraphSystem)
Removes the dependency on the system execution.
Declaration
[Unmanaged]
public void RemoveDependency(TaskGraphSystem system)
Parameters
TaskGraphSystem
system
The system to not depend on anymore. |