CUDA + OpenGL Interop without deprecated functionality

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 22:13:28

You can see on the official example in CUDA 6 SDK, it's called "simpleCUDA2GL" in "3_Imaging" directory. It has two different approaches to access texture inside CUDA kernel. One of them (I think the old one) uses the PBO, and it is 3 times slower on my machine.

You may want to look at this very recent CUDA GL Interop example from NVIDIA:

https://github.com/nvpro-samples/gl_cuda_interop_pingpong_st

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!