PxBuffer
Defined in include/PxBuffer.h
-
class PxBuffer
Buffer for delayed bulk read and write operations supporting host and GPU device memory spaces.
See also
Public Functions
-
virtual void release() = 0
Deletes the buffer.
Do not keep a reference to the deleted instance. Unfinished operations will be flushed and synchronized on.
-
virtual void *map() = 0
Provides access to internal memory (either device or pinned host memory depending on PxBufferType).
Unfinished operations will be flushed and synchronized on before returning.
-
virtual void unmap(void *event = NULL) = 0
Releases access to internal memory (either device or pinned host memory depending on PxBufferType).
- Parameters
event – [in] Optional pointer to CUevent. Used to synchronize on application side work that needs to be completed before buffer can be accessed again.
-
virtual PxBufferType::Enum getBufferType() const = 0
Buffer memory space type.
See also
-
virtual PxCudaContextManager *getCudaContextManager() const = 0
Get the associated PxCudaContextManager.
See also
-
inline void sync()
Helper function to synchronize on all pending operations.
See also
-
virtual void release() = 0