cudaError_t cudaGLUnmapBufferObject ( GLuint  bufObj  ) 

Unmaps the buffer object of ID bufObj for access by CUDA. When a buffer is unmapped, the base address returned by cudaGLMapBufferObject() is invalid and subsequent references to the address 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:
bufObj - Buffer object to unmap
Returns:
cudaSuccess, cudaErrorInvalidDevicePointer, cudaErrorUnmapBufferObjectFailed
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cudaGLSetGLDevice, cudaGLRegisterBufferObject, cudaGLMapBufferObject, cudaGLUnregisterBufferObject


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