- Deprecated:
- This function is deprecated as of Cuda 3.0.
Maps the buffer object specified by
buffer
into the address space of the current CUDA context and returns in
*dptr
and
*size
the base pointer and size of the resulting mapping.
There must be a valid OpenGL context bound to the current thread when this function is called. This must be the same context, or a member of the same shareGroup, as the context that was bound when the buffer was registered.
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 |
| buffer | - The name of the 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:
- cuGraphicsMapResources