11 #ifndef PX_GPU_COPY_DESC_QUEUE_H
12 #define PX_GPU_COPY_DESC_QUEUE_H
57 if (reserveSize > mReserved)
61 mDispatcher.getCudaContextManager()->getMemoryManager()->free(
66 mBuffer = (
PxGpuCopyDesc*) mDispatcher.getCudaContextManager()->getMemoryManager()->alloc(
72 mReserved = reserveSize;
90 if (mOccupancy < mReserved)
92 mBuffer[ mOccupancy++ ] = desc;
96 mDispatcher.launchCopyKernel(&desc, 1, mStream);
103 if (mOccupancy > mFlushed)
105 mDispatcher.launchCopyKernel(mBuffer + mFlushed, mOccupancy - mFlushed, mStream);
106 mFlushed = mOccupancy;