Search Results for

    Show / Hide Table of Contents

    Class TaskGraph

    Graph-based asynchronous tasks scheduler for high-performance computing and processing.

    Inheritance
    System.Object
    Object
    TaskGraph
    Inherited Members
    Object.__unmanagedPtr
    Object.__internalId
    Object.Finalize()
    Object.As<T>()
    Object.NewValue(Type)
    Object.New(String)
    Object.Find<T>(Guid, Boolean)
    Object.Find(Guid, Type, Boolean)
    Object.TryFind<T>(Guid)
    Object.TryFind(Guid, Type)
    Object.Destroy(Object, Single)
    Object.DestroyNow(Object)
    Object.Destroy<T>(T, Single)
    Object.Equals(Object)
    Object.GetUnmanagedPtr(Object)
    Object.GetUnmanagedInterface(Object, Type)
    Object.FromUnmanagedPtr(IntPtr)
    Object.MapObjectID(Guid)
    Object.RemapObjectID(Guid)
    Object.GetHashCode()
    Object.ID
    Object.TypeName
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    [Unmanaged]
    public class TaskGraph : Object

    Constructors

    TaskGraph()

    Initializes a new instance of the TaskGraph.

    Declaration
    public 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.

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.DeepClone<T>(T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat