The PxTaskManager interface.
More...
#include <PxTaskManager.h>
The PxTaskManager interface.
A PxTaskManager instance holds references to user-provided dispatcher objects, when tasks are submitted the PxTaskManager routes them to the appropriate dispatcher and handles task profiling if enabled. Users should not implement the PxTaskManager interface, the SDK creates it's own concrete PxTaskManager object per-scene which users can configure by passing dispatcher objects into the PxSceneDesc.
- See Also
- PxSceneDesc
-
CpuDispatcher
-
PxGpuDispatcher
-
PxSpuDispatcher
virtual PxTaskManager::~PxTaskManager |
( |
| ) |
|
|
inlineprotectedvirtual |
Construct a new PxTaskManager instance with the given [optional] dispatchers.
Get the user-provided dispatcher object for CPU tasks.
- Returns
- The CPU dispatcher object.
- See Also
- CpuDispatcher
Get the user-provided dispatcher object for GPU tasks.
- Returns
- The GPU dispatcher object.
- See Also
- PxGpuDispatcher
virtual PxTaskID PxTaskManager::getNamedTask |
( |
const char * |
name | ) |
|
|
pure virtual |
Retrieve a task by name.
- Parameters
-
[in] | name | The unique name of a task |
- Returns
- The ID of the task with that name, or TT_NOT_PRESENT if not found
Get the user-provided dispatcher object for SPU tasks.
- Returns
- The SPU dispatcher object.
- See Also
- PxSpuDispatcher
Retrive a task given a task ID.
- Parameters
-
[in] | id | The ID of the task to return, a valid ID must be passed or results are undefined |
- Returns
- The task associated with the ID
virtual void PxTaskManager::initializeProfiling |
( |
PxProfileZoneManager & |
ref | ) |
|
|
pure virtual |
Set profile zone used for task profiling.
- Parameters
-
[in] | ref | The profile zone manager |
- See Also
- PxProfileZoneManager
virtual void PxTaskManager::release |
( |
| ) |
|
|
pure virtual |
Release the PxTaskManager object, referneced dispatchers will not be released.
virtual void PxTaskManager::resetDependencies |
( |
| ) |
|
|
pure virtual |
Reset any dependencies between Tasks.
- Note
- Will be called at the start of every frame before tasks are submited.
- See Also
- PxTask
Set the user-provided dispatcher object for CPU tasks.
- Parameters
-
[in] | ref | The dispatcher object. |
- See Also
- CpuDispatcher
Set the user-provided dispatcher object for GPU tasks.
- Parameters
-
[in] | ref | The dispatcher object. |
- See Also
- PxGpuDispatcher
Set the user-provided dispatcher object for SPU tasks.
- Parameters
-
[in] | ref | The dispatcher object. |
- See Also
- PxSpuDispatcher
virtual void PxTaskManager::startSimulation |
( |
| ) |
|
|
pure virtual |
Called by the owning scene to start the task graph.
- Note
- All tasks with with ref count of 1 will be dispatched.
- See Also
- PxTask
virtual void PxTaskManager::stopSimulation |
( |
| ) |
|
|
pure virtual |
Submit a task with a unique name.
- Parameters
-
[in] | task | The task to be executed |
[in] | name | The unique name of a task |
[in] | type | The type of the task (default TT_CPU) |
- Returns
- The ID of the task with that name, or TT_NOT_PRESENT if not found
Submit an unnamed task.
- Parameters
-
[in] | task | The task to be executed |
[in] | type | The type of the task (default TT_CPU) |
- Returns
- The ID of the task with that name, or TT_NOT_PRESENT if not found
virtual void PxTaskManager::taskCompleted |
( |
PxTask & |
task | ) |
|
|
pure virtual |
Called by the worker threads to inform the PxTaskManager that a task has completed processing.
- Parameters
-
[in] | task | The task which has been completed |
Referenced by PxTask::release().
friend class PxGpuWorkerThread |
|
friend |
The documentation for this class was generated from the following file: