Public Member Functions | Protected Attributes | Friends
physx::PxTask Class Reference

A PxBaseTask implementation with deferred execution and full dependencies. More...

#include <PxTask.h>

Inheritance diagram for physx::PxTask:

List of all members.

Public Member Functions

virtual void release ()
 Release method implementation.
PX_INLINE void finishBefore (PxTaskID taskID)
 Inform the PxTaskManager this task must finish before the given.
PX_INLINE void startAfter (PxTaskID taskID)
 Inform the PxTaskManager this task cannot start until the given.
PX_INLINE void addReference ()
 Manually increment this task's reference count. The task will not be allowed to run until removeReference() is called.
PX_INLINE void removeReference ()
 Manually decrement this task's reference count. If the reference count reaches zero, the task will be dispatched.
PX_INLINE PxI32 getReference () const
 Return the ref-count for this task.
PX_INLINE PxTaskID getTaskID () const
 Return the unique ID for this task.
virtual void submitted ()
 Called by PxTaskManager at submission time for initialization.
PX_INLINE void requestSyncPoint ()
 Specify that the GpuTask sync flag be set.

Protected Attributes

PxTaskID mTaskID
 ID assigned at submission.
PxU32 mStreamIndex
 GpuTask CUDA stream index.
bool mPreSyncRequired
 GpuTask sync flag.

Friends

class PxTaskMgr
class PxGpuWorkerThread

Detailed Description

A PxBaseTask implementation with deferred execution and full dependencies.

A PxTask must be submitted to a PxTaskManager to to be executed, Tasks may optionally be named when they are submitted.


Member Function Documentation

virtual void physx::PxTask::submitted ( ) [inline, virtual]

Called by PxTaskManager at submission time for initialization.

Perform simulation step initialization here.


The documentation for this class was generated from the following file:

Generated on Mon Apr 28 2014 08:02:18

Copyright © 2012-2014 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved.