|
Maps the buffer object of ID bufferObj into the address space of the current CUDA context and returns in *dptr and *size the base pointer and size of the resulting mapping.
- Parameters:
-
| dptr | - Returned mapped base pointer |
| size | - Returned size of mapping |
| bufferObj | - Buffer object to map |
- Returns:
- CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_VALUE, CUDA_ERROR_MAP_FAILED
- Note:
- Note that this function may also return error codes from previous, asynchronous launches.
- See also:
- cuGLCtxCreate, cuGLInit, cuGLRegisterBufferObject, cuGLUnmapBufferObject, cuGLUnregisterBufferObject, cuWGLGetDevice
|