PxBuffer

Defined in include/PxBuffer.h

class PxBuffer

Buffer for delayed bulk read and write operations supporting host and GPU device memory spaces.

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

PxBufferType

virtual PxU64 getByteSize() const = 0

Size of buffer in bytes.

virtual PxCudaContextManager *getCudaContextManager() const = 0

Get the associated PxCudaContextManager.

inline void sync()

Helper function to synchronize on all pending operations.

virtual void resize(PxU64 size) = 0

Protected Functions

inline virtual ~PxBuffer()
inline PxBuffer()