I know CUDA, GL interoperablity that register GL buffer in CUDA and do parallel computing on it without copy between GL memory and CUDA memory thanks to CUDA GL interoperablity property.
My question is how can we register a CUDA pointer in GL buffer ( vice versa). we need Two way GL CUDA interoperablity.
Thanks so much.
You can find an example below:
Thanks for your reply. However, the aforementioned sample code is not what I need. My intention is to access a CUDA buffer (allocated using cudaMalloc) without any copy in OpenGL buffer. That is I need some type of shared pointer between CUDA and OpenGL. If it is possible, could you please provide a sample code for this?
Thanks again for your help
We only have examples between CUDA and EGL.
Maybe you can find some examples from the community for OpenGL.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.