cudaError_t cudaGLMapBufferObject ( void **  devPtr,
GLuint  bufObj 
)

Maps the buffer object of ID bufObj into the address space of CUDA and returns in *devPtr the base pointer of the resulting mapping. The buffer must have previously been registered by calling cudaGLRegisterBufferObject(). While a buffer is mapped by CUDA, any OpenGL operation which references the buffer will result in undefined behavior. The OpenGL context used to create the buffer, or another context from the same share group, must be bound to the current thread when this is called.

Parameters:
devPtr - Returned device pointer to CUDA object
bufObj - Buffer object ID to map
Returns:
cudaSuccess, cudaErrorMapBufferObjectFailed
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cudaGLSetGLDevice, cudaGLRegisterBufferObject, cudaGLUnmapBufferObject, cudaGLUnregisterBufferObject


Generated by Doxygen on Mon Mar 30 23:16:11 2009 for NVIDIA CUDA Library  NVIDIA