17 #include "physxprofilesdk/PxProfileZone.h"
47 static const PxU32 kMaxSpus = 6;
48 static const PxU32 kArgsPerSpu = 2;
60 , mNbSpusToRun(numSpus)
66 memcpy(mArgs, args, mNbSpusToRun*kArgsPerSpu*
sizeof(
PxU32));
86 mNbSpusToRun = numSpusToRun;
97 return mArgs[spuIndex];
110 PxU32* arguments = mArgs[spuIndex];
141 if (mNbSpusFinished == mNbSpusToRun)
146 getTaskManager()->emitStopEvent(*
this, PxProfileEventSender::CrossThreadId);
147 mEmitProfile =
false;
158 virtual void removeReference()
161 mTm->decrReference(*
this);
180 getTaskManager()->emitStartEvent(*
this, PxProfileEventSender::CrossThreadId);