I found that there are some APIs which can map OpenGL buffers to CUDA arrays. https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__OPENGL.html
In the opposite direction, I want to map existing CUDA arrays to OpenGL buffers, how can I do that? Thanks.