RavEngine
Loading...
Searching...
No Matches
PxsCMDiscreteUpdateTask Class Reference
Inheritance diagram for PxsCMDiscreteUpdateTask:
[legend]
Collaboration diagram for PxsCMDiscreteUpdateTask:
[legend]

Public Member Functions

 PxsCMDiscreteUpdateTask (PxsContext *context, PxReal dt, PxsContactManager **cms, PxsContactManagerOutput *cmOutputs, Gu::Cache *caches, PxU32 nbCms, PxContactModifyCallback *callback)
 
void runModifiableContactManagers (PxU32 *modifiableIndices, PxU32 nbModifiableManagers, PxcNpThreadContext &threadContext, PxU32 &maxPatches_)
 
template<void(*)(PxcNpThreadContext &, const PxcNpWorkUnit &, Gu::Cache &, PxsContactManagerOutput &, PxU64) NarrowPhase>
void processCms (PxcNpThreadContext *threadContext)
 
virtual void runInternal ()
 
virtual const char * getName () const
 Return a user-provided task name for profiling purposes.
 
- Public Member Functions inherited from PxsCMUpdateTask
 PxsCMUpdateTask (PxsContext *context, PxReal dt, PxsContactManager **cmArray, PxsContactManagerOutput *cmOutputs, Gu::Cache *caches, PxU32 cmCount, PxContactModifyCallback *callback)
 
virtual void release ()
 called by CpuDispatcher after run method has completed
 
- Public Member Functions inherited from physx::Cm::Task
 Task (PxU64 contextId)
 
virtual void run ()
 The user-implemented run method where the task's work should be performed.
 
- Public Member Functions inherited from physx::PxLightCpuTask
PX_INLINE void setContinuation (PxTaskManager &tm, PxBaseTask *c)
 Initialize this task and specify the task that will have its ref count decremented on completion.
 
PX_INLINE void setContinuation (PxBaseTask *c)
 Initialize this task and specify the task that will have its ref count decremented on completion.
 
PX_INLINE PxBaseTask * getContinuation () const
 Retrieves continuation task.
 
virtual void removeReference () PX_OVERRIDE
 Manually decrement this task's reference count. If the reference count reaches zero, the task will be dispatched.
 
virtual int32_t getReference () const PX_OVERRIDE
 Return the ref-count for this task.
 
virtual void addReference () PX_OVERRIDE
 Manually increment this task's reference count. The task will not be allowed to run until removeReference() is called.
 
- Public Member Functions inherited from physx::PxBaseTask
PX_FORCE_INLINE PxTaskManager * getTaskManager () const
 Return PxTaskManager to which this task was submitted.
 
PX_FORCE_INLINE void setContextId (PxU64 id)
 
PX_FORCE_INLINE PxU64 getContextId () const
 

Additional Inherited Members

- Public Attributes inherited from PxsCMUpdateTask
PxsContactManager ** mCmArray
 
PxsContactManagerOutput * mCmOutputs
 
Gu::Cache * mCaches
 
PxsContext * mContext
 
PxContactModifyCallback * mCallback
 
PxU32 mCmCount
 
PxReal mDt
 
PxU32 mNbPatchChanged
 
PxsContactManagerOutputCounts mPatchChangedOutputCounts [BATCH_SIZE]
 
PxsContactManager * mPatchChangedCms [BATCH_SIZE]
 
- Static Public Attributes inherited from PxsCMUpdateTask
static const PxU32 BATCH_SIZE = 128
 
- Protected Attributes inherited from physx::PxLightCpuTask
PxBaseTask * mCont
 Continuation task, can be NULL.
 
volatile int32_t mRefCount
 PxTask is dispatched when reaches 0.
 
- Protected Attributes inherited from physx::PxBaseTask
PxU64 mContextID
 Context ID for profiler interface.
 
PxTaskManager * mTm
 Owning PxTaskManager instance.
 

Member Function Documentation

◆ getName()

virtual const char * PxsCMDiscreteUpdateTask::getName ( ) const
inlinevirtual

Return a user-provided task name for profiling purposes.

It does not have to be unique, but unique names are helpful.

Returns
The name of this task

Implements physx::PxBaseTask.

◆ runInternal()

virtual void PxsCMDiscreteUpdateTask::runInternal ( )
inlinevirtual

Implements physx::Cm::Task.


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