28 #ifndef PXTASK_PXTASKMANAGER_H 29 #define PXTASK_PXTASKMANAGER_H 66 class PxCpuDispatcher;
67 class PxGpuDispatcher;
208 virtual void addReference(
PxTaskID taskID) = 0;
209 virtual void decrReference(
PxTaskID taskID) = 0;
210 virtual int32_t getReference(
PxTaskID taskID)
const = 0;
228 #endif // PXTASK_PXTASKMANAGER_H Definition: GuContactBuffer.h:37
Base class of all task types.
Definition: PxTask.h:45
PxTask will be run on the GPU.
Definition: PxTaskManager.h:60
User defined interface class. Used by the library to emit debug information.
Definition: PxErrorCallback.h:51
virtual void startSimulation()=0
Called by the owning scene to start the task graph.
virtual void stopSimulation()=0
Called by the owning scene at the end of a simulation step to synchronize the PxGpuDispatcher.
A GpuTask dispatcher.
Definition: PxGpuDispatcher.h:71
unsigned int PxTaskID
Definition: PxTaskManager.h:41
Return code when attempting to find a task that does not exist.
Definition: PxTaskManager.h:61
virtual ~PxTaskManager()
Definition: PxTaskManager.h:201
virtual void resetDependencies()=0
Reset any dependencies between Tasks.
A PxBaseTask implementation with immediate execution and simple dependencies.
Definition: PxTask.h:222
#define PX_POP_PACK
Definition: PxPreprocessor.h:343
virtual void setCpuDispatcher(PxCpuDispatcher &ref)=0
Set the user-provided dispatcher object for CPU tasks.
PxTask will be run on the CPU.
Definition: PxTaskManager.h:59
virtual PxTaskID getNamedTask(const char *name)=0
Retrieve a task by name.
Enum
Identifies the type of each heavyweight PxTask object.
Definition: PxTaskManager.h:57
virtual PxTaskID submitNamedTask(PxTask *task, const char *name, PxTaskType::Enum type=PxTaskType::TT_CPU)=0
Submit a task with a unique name.
Identifies the type of each heavyweight PxTask object.
Definition: PxTaskManager.h:52
The PxTaskManager interface.
Definition: PxTaskManager.h:81
static PxTaskManager * createTaskManager(PxErrorCallback &errorCallback, PxCpuDispatcher *=0, PxGpuDispatcher *=0)
Construct a new PxTaskManager instance with the given [optional] dispatchers.
PxTask execution has been completed.
Definition: PxTaskManager.h:62
friend class PxGpuWorkerThread
Definition: PxTaskManager.h:220
virtual void setGpuDispatcher(PxGpuDispatcher &ref)=0
Set the user-provided dispatcher object for GPU tasks.
virtual void taskCompleted(PxTask &task)=0
Called by the worker threads to inform the PxTaskManager that a task has completed processing...
virtual PxGpuDispatcher * getGpuDispatcher() const =0
Get the user-provided dispatcher object for GPU tasks.
virtual PxTaskID submitUnnamedTask(PxTask &task, PxTaskType::Enum type=PxTaskType::TT_CPU)=0
Submit an unnamed task.
#define PX_PUSH_PACK_DEFAULT
Definition: PxPreprocessor.h:342
A PxBaseTask implementation with deferred execution and full dependencies.
Definition: PxTask.h:111
virtual void release()=0
Release the PxTaskManager object, referenced dispatchers will not be released.
A CpuDispatcher is responsible for scheduling the execution of tasks passed to it by the SDK...
Definition: PxCpuDispatcher.h:49
virtual PxTask * getTaskFromID(PxTaskID id)=0
Retrieve a task given a task ID.
virtual PxCpuDispatcher * getCpuDispatcher() const =0
Get the user-provided dispatcher object for CPU tasks.