cudaError_t cudaGLMapBufferObject ( void **  devPtr,
GLuint  bufObj 
)

Deprecated:
This function is deprecated as of Cuda 3.0.
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.

All streams in the current thread are synchronized with the current GL context.

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:
cudaGraphicsMapResources


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA