|
cuGLMapBufferObject |
( |
CUdeviceptr * |
dptr, |
|
|
unsigned int * |
size, |
|
|
GLuint |
bufferobj | |
|
) |
| | |
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.
All streams in the current CUDA context are synchronized with the current GL context.
- 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, cuGLMapBufferObjectAsync, cuGLUnmapBufferObjectAsync, cuGLSetBufferObjectMapFlags, cuWGLGetDevice
|