pxtask::GpuCopyDescQueue Class Reference
Container class for queueing GpuCopyDesc instances in pinned (non-pageable) CPU memory. More...
#include <PxGpuCopyDescQueue.h>
Collaboration diagram for pxtask::GpuCopyDescQueue:
![Collaboration graph](classpxtask_1_1GpuCopyDescQueue__coll__graph.png)
Public Member Functions | |
GpuCopyDescQueue (GpuDispatcher &d) | |
GpuCopyDescQueue constructor. | |
~GpuCopyDescQueue () | |
GpuCopyDescQueue destructor. | |
void | reset (CUstream stream, PxU32 reserveSize) |
Reset the enqueued copy descriptor list. | |
void | enqueue (GpuCopyDesc &desc) |
Enqueue the specified copy descriptor, or launch immediately if no room is available. | |
void | flushEnqueued () |
Launch all copies queued since the last flush or reset. | |
Private Member Functions | |
void | operator= (const GpuCopyDescQueue &) |
Private Attributes | |
GpuDispatcher & | mDispatcher |
GpuCopyDesc * | mBuffer |
CUstream | mStream |
PxU32 | mReserved |
PxU32 | mOccupancy |
PxU32 | mFlushed |
Detailed Description
Container class for queueing GpuCopyDesc instances in pinned (non-pageable) CPU memory.Constructor & Destructor Documentation
pxtask::GpuCopyDescQueue::GpuCopyDescQueue | ( | GpuDispatcher & | d | ) | [inline] |
GpuCopyDescQueue constructor.
pxtask::GpuCopyDescQueue::~GpuCopyDescQueue | ( | ) | [inline] |
GpuCopyDescQueue destructor.
Member Function Documentation
void pxtask::GpuCopyDescQueue::enqueue | ( | GpuCopyDesc & | desc | ) | [inline] |
Enqueue the specified copy descriptor, or launch immediately if no room is available.
References pxtask::GpuCopyDesc::bytes, pxtask::GpuCopyDesc::isValid(), and PX_ASSERT.
void pxtask::GpuCopyDescQueue::flushEnqueued | ( | ) | [inline] |
Launch all copies queued since the last flush or reset.
void pxtask::GpuCopyDescQueue::operator= | ( | const GpuCopyDescQueue & | ) | [private] |
Reset the enqueued copy descriptor list.
Must be called at least once before any copies are enqueued, and each time the launched copies are known to have been completed. The recommended use case is to call this at the start of each simulation step.
References NV_ALLOC_INFO.
Member Data Documentation
GpuCopyDesc* pxtask::GpuCopyDescQueue::mBuffer [private] |
PxU32 pxtask::GpuCopyDescQueue::mFlushed [private] |
PxU32 pxtask::GpuCopyDescQueue::mOccupancy [private] |
PxU32 pxtask::GpuCopyDescQueue::mReserved [private] |
CUstream pxtask::GpuCopyDescQueue::mStream [private] |
The documentation for this class was generated from the following file:
Copyright © 2008-2012 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com