cuGLMapBufferObjectAsync ( CUdeviceptr dptr,
unsigned int *  size,
GLuint  bufferobj,
CUstream  hStream 
)

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.

Stream hStream in the current CUDA context is synchronized with the current GL context.

Parameters:
dptr - Returned mapped base pointer
size - Returned size of mapping
bufferobj - Buffer object to map
hStream - Stream to synchronize
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, cuGLUnmapBufferObjectAsync, cuGLSetBufferObjectMapFlags,cuWGLGetDevice


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA