CUDA GL interoperablity

Hi guys,
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.

Hi,

You can find an example below:

/usr/src/jetson_multimedia_api/samples/03_video_cuda_enc

Thanks.

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

Hi,

We only have examples between CUDA and EGL.
Maybe you can find some examples from the community for OpenGL.

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.