#include <PxGpuTask.h>
Public Member Functions | |
PxGpuTask () | |
virtual bool | launchInstance (CUstream stream, int kernelIndex)=0 |
iterative "run" function for a PxGpuTask | |
virtual PxGpuTaskHint::Enum | getTaskHint () const =0 |
Returns a hint indicating the function of this task. | |
void | setCompletionTask (PxBaseTask &task) |
Specify a task that will have its reference count decremented when this task is released. | |
void | release () |
Release method implementation. | |
Protected Attributes | |
PxBaseTask * | mComp |
A pointer to the completion task. |
physx::PxGpuTask::PxGpuTask | ( | ) | [inline] |
virtual PxGpuTaskHint::Enum physx::PxGpuTask::getTaskHint | ( | ) | const [pure virtual] |
Returns a hint indicating the function of this task.
virtual bool physx::PxGpuTask::launchInstance | ( | CUstream | stream, | |
int | kernelIndex | |||
) | [pure virtual] |
iterative "run" function for a PxGpuTask
The GpuDispatcher acquires the CUDA context for the duration of this function call, and it is highly recommended that the PxGpuTask use the provided CUstream for all kernels.
kernelIndex will be 0 for the initial call and incremented before each subsequent call. Once launchInstance() returns false, its PxGpuTask is considered completed and is released.
void physx::PxGpuTask::release | ( | ) | [inline, virtual] |
Release method implementation.
Reimplemented from physx::PxTask.
References mComp, and physx::PxBaseTask::removeReference().
void physx::PxGpuTask::setCompletionTask | ( | PxBaseTask & | task | ) | [inline] |
Specify a task that will have its reference count decremented when this task is released.
References mComp.
PxBaseTask* physx::PxGpuTask::mComp [protected] |