Buffer which keeps informations about allocated piece of memory.
More...
#include <PxCudaMemoryManager.h>
Buffer which keeps informations about allocated piece of memory.
virtual PxCudaBuffer::~PxCudaBuffer |
( |
| ) |
|
|
inlineprotectedvirtual |
virtual bool PxCudaBuffer::free |
( |
| ) |
|
|
pure virtual |
Releases the buffer and the memory it used, returns true if successful.
Retrieves the manager over which the buffer was allocated.
Returns the pointer to the allocated memory.
virtual size_t PxCudaBuffer::getSize |
( |
| ) |
const |
|
pure virtual |
Returns the size of the allocated memory.
Returns the type of the allocated memory.
Realloc memory. Use to shrink or resize the allocated chunk of memory of this buffer. Returns true if successful. Fails if the operation would change the address and need a memcopy. In that case the user has to allocate, copy and free the memory with separate steps. Realloc to size 0 always returns false and doesn't change the state.
The documentation for this class was generated from the following file: