12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

172 Module Documentation3.27.2.4 CUresult cuGLRegisterBufferObject (GLuint bufferObj)Registers the buffer object of ID bufferObj for access by <strong>CUDA</strong>. This function must be called before <strong>CUDA</strong> canmap the buffer object. While it is registered, the buffer object cannot be used by any OpenGL commands, except as adata source for OpenGL drawing commands.Parameters:bufferObj - Buffer object to registerReturns:Note:<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_ALREADY_MAPPEDSee also:Note that this function may also return error codes from previous, asynchronous launches.cuGLCtxCreate, cuGLInit, cuGLMapBufferObject, cuGLUnmapBufferObject, cuGLUnregisterBufferObject,cuWGLGetDevice3.27.2.5 CUresult cuGLUnmapBufferObject (GLuint bufferObj)Unmaps the buffer object of ID bufferObj for access by <strong>CUDA</strong>.Parameters:bufferObj - Buffer object to unmapReturns:Note:<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_VALUESee also:Note that this function may also return error codes from previous, asynchronous launches.cuGLCtxCreate, cuGLInit, cuGLMapBufferObject, cuGLRegisterBufferObject, cuGLUnregisterBufferObject,cuWGLGetDevice3.27.2.6 CUresult cuGLUnregisterBufferObject (GLuint bufferObj)Unregisters the buffer object of ID bufferObj for access by <strong>CUDA</strong>.Parameters:bufferObj - Buffer object to unmapGenerated on Wed Apr 1 16:11:42 2009 for <strong>NVIDIA</strong> <strong>CUDA</strong> Library by Doxygen

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!