Search Results for

    Show / Hide Table of Contents

    Class TaskGraphSystem

    System that can generate work into Task Graph for asynchronous execution.

    Inheritance
    Object
    ScriptingObject
    TaskGraphSystem
    Inherited Members
    ScriptingObject::_gcHandle
    ScriptingObject::_id
    ScriptingObject::_type
    ScriptingObject::CanCast(const ScriptingTypeHandle& from, const ScriptingTypeHandle& to)
    ScriptingObject::CanCast(const MClass* from, const MClass* to)
    ScriptingObject::Cast(ScriptingObject* obj)
    ScriptingObject::ChangeID(const Guid& newId)
    ScriptingObject::CreateManaged()
    ScriptingObject::CreateManagedInternal()
    ScriptingObject::Deleted
    Object::DeleteObject(float timeToLive = 0.0f, bool useGameTime=false)
    Object::DeleteObjectNow()
    ScriptingObject::DestroyManaged()
    Object::Flags
    ScriptingObject::FromInterface(void* interfaceObj, const ScriptingTypeHandle& interfaceType)
    ScriptingObject::FromInterface(T* interfaceObj)
    ScriptingObject::GetClass()
    ScriptingObject::GetID()
    ScriptingObject::GetManagedInstance()
    ScriptingObject::GetOrCreateManagedInstance()
    ScriptingObject::GetType()
    ScriptingObject::GetTypeHandle()
    ScriptingObject::HasManagedInstance()
    ScriptingObject::Is(const ScriptingTypeHandle& type)
    ScriptingObject::Is(const MClass* type)
    ScriptingObject::Is()
    ScriptingObject::IsRegistered()
    ScriptingObject::NewObject(const ScriptingTypeHandle& typeHandle)
    ScriptingObject::NewObject()
    ScriptingObject::OnDeleteObject()
    ScriptingObject::OnManagedInstanceDeleted()
    ScriptingObject::OnScriptingDispose()
    ScriptingObject::RegisterObject()
    ScriptingObject::ScriptingObject(const SpawnParams& params)
    ScriptingObject::SetManagedInstance(MObject* instance)
    TaskGraphSystem
    ScriptingObject::ToInterface(ScriptingObject* obj, const ScriptingTypeHandle& interfaceType)
    ScriptingObject::ToInterface(ScriptingObject* obj)
    ScriptingObject::ToManaged(const ScriptingObject* obj)
    ScriptingObject::ToNative(MObject* obj)
    ScriptingObject::ToString()
    ScriptingObject::UnregisterObject()
    Object::~Object()
    ScriptingObject::~ScriptingObject()
    Assembly: FlaxEngine.dll
    File: Engine/Threading/TaskGraph.h
    Syntax
    public class TaskGraphSystem : public ScriptingObject

    Constructors

    ~TaskGraphSystem()

    Declaration
    public ~TaskGraphSystem()

    Fields

    Order

    The execution order of the system (systems with higher order are executed later, lower first).

    Declaration
    public int32 Order = 0
    Field Value
    int32

    Methods

    AddDependency(TaskGraphSystem* system)

    Adds the dependency on the system execution. Before this system can be executed the given dependant system has to be executed first.

    Declaration
    public void AddDependency(TaskGraphSystem* system)
    Parameters
    TaskGraphSystem system

    The system to depend on.

    Execute(TaskGraph* graph)

    Executes the system logic and schedules the asynchronous work.

    Declaration
    public virtual void Execute(TaskGraph* graph)
    Parameters
    TaskGraph graph

    The graph executing the system.

    PostExecute(TaskGraph* graph)

    Called after executing all systems of the graph. Can be used to cleanup data (synchronous).

    Declaration
    public virtual void PostExecute(TaskGraph* graph)
    Parameters
    TaskGraph graph

    The graph executing the system.

    PreExecute(TaskGraph* graph)

    Called before executing any systems of the graph. Can be used to initialize data (synchronous).

    Declaration
    public virtual void PreExecute(TaskGraph* graph)
    Parameters
    TaskGraph graph

    The graph executing the system.

    RemoveDependency(TaskGraphSystem* system)

    Removes the dependency on the system execution.

    Declaration
    public void RemoveDependency(TaskGraphSystem* system)
    Parameters
    TaskGraphSystem system

    The system to not depend on anymore.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat