cuda与openGL互操作的实现与分析 http://www.freescaleic.org/article/12-05/2075521337158677.html?sort=1111_0_0_0 CUDA和opengl 互操作的过程 (1)cudaGLSetGLDevice (cutGetMaxGflopsDeviceId() ); 分配显存设备 (2)创建 OpenGL 的vbo/pbo/fbo 对象, (3)cudaGLRegisterBufferObject(vbo) 将OpenGL缓冲对象注册到cuda (4)cudaGLMapBufferObject((void**)&dptr, vbo) 将vbo映射到dptr,然后在kernel中运行 (5)cudaGLUnmapBufferObject(vbo) ,解除映射 (6)cudaGLRegisterBufferObject(vbo), 注销OpenGl缓冲对象