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

Maps the buffer object specified by 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.

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.

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 - The name of the 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