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.

3.27 OpenGL Interoperability 171Note:See also:Note that this function may also return error codes from previous, asynchronous launches.cuCtxCreate, cuGLInit, cuGLMapBufferObject, cuGLRegisterBufferObject, cuGLUnmapBufferObject,cuGLUnregisterBufferObject, cuWGLGetDevice3.27.2.2 CUresult cuGLInit (void)Initializes OpenGL interoperability. It must be called before performing any other OpenGL interoperability operations.It may fail if the needed OpenGL driver facilities are not available.Returns: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_UNKNOWNSee also:Note that this function may also return error codes from previous, asynchronous launches.cuGLCtxCreate, cuGLMapBufferObject, cuGLRegisterBufferObject, cuGLUnmapBufferObject, cuGLUnregisterBufferObject,cuWGLGetDevice3.27.2.3 CUresult cuGLMapBufferObject (CUdeviceptr ∗ dptr, unsigned int ∗ size, GLuint bufferObj)Maps the buffer object of ID bufferObj into the address space of the current <strong>CUDA</strong> context and returns in ∗dptrand ∗size the base pointer and size of the resulting mapping.Parameters:dptr - Returned mapped base pointersize - Returned size of mappingbufferObj - Buffer object to mapReturns: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_VALUE, <strong>CUDA</strong>_ERROR_MAP_FAILEDSee also:Note that this function may also return error codes from previous, asynchronous launches.cuGLCtxCreate, cuGLInit, cuGLRegisterBufferObject, cuGLUnmapBufferObject, cuGLUnregisterBufferObject,cuWGLGetDeviceGenerated 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!