Buffer for delayed bulk read and write operations supporting host and GPU device memory spaces.
More...
#include <PxBuffer.h>
|
| virtual void | release ()=0 |
| | Deletes the buffer.
|
| |
| virtual void * | map ()=0 |
| | Provides access to internal memory (either device or pinned host memory depending on PxBufferType).
|
| |
| virtual void | unmap (void *event=NULL)=0 |
| | Releases access to internal memory (either device or pinned host memory depending on PxBufferType).
|
| |
| virtual PxBufferType::Enum | getBufferType () const =0 |
| | Buffer memory space type.
|
| |
|
virtual PxU64 | getByteSize () const =0 |
| | Size of buffer in bytes.
|
| |
| virtual PxCudaContextManager * | getCudaContextManager () const =0 |
| | Get the associated PxCudaContextManager.
|
| |
| PX_INLINE void | sync () |
| | Helper function to synchronize on all pending operations.
|
| |
|
virtual void | resize (PxU64 size)=0 |
| |
Buffer for delayed bulk read and write operations supporting host and GPU device memory spaces.
- See also
- PxPhysics::createBuffer(), PxParticleSystem
◆ getBufferType()
| virtual PxBufferType::Enum physx::PxBuffer::getBufferType |
( |
| ) |
const |
|
pure virtual |
◆ getCudaContextManager()
| virtual PxCudaContextManager * physx::PxBuffer::getCudaContextManager |
( |
| ) |
const |
|
pure virtual |
Get the associated PxCudaContextManager.
- See also
- PxCudaContextManager.
◆ map()
| virtual void * physx::PxBuffer::map |
( |
| ) |
|
|
pure virtual |
Provides access to internal memory (either device or pinned host memory depending on PxBufferType).
Unfinished operations will be flushed and synchronized on before returning.
◆ release()
| virtual void physx::PxBuffer::release |
( |
| ) |
|
|
pure virtual |
Deletes the buffer.
Do not keep a reference to the deleted instance. Unfinished operations will be flushed and synchronized on.
◆ sync()
Helper function to synchronize on all pending operations.
- See also
- PxCudaContextManager.
◆ unmap()
| virtual void physx::PxBuffer::unmap |
( |
void * |
event = NULL | ) |
|
|
pure virtual |
Releases access to internal memory (either device or pinned host memory depending on PxBufferType).
- Parameters
-
| [in] | event | Optional pointer to CUevent. Used to synchronize on application side work that needs to be completed before buffer can be accessed again. |
The documentation for this class was generated from the following file: