How best to implement the interaction of Cuda and OpenGL? I need to make calculations on Cuda and somehow draw them.

I am not a professional, I can make a mistake in technology, can you tell me how to do this better?

    1 answer 1

    Yes it is possible. You need to learn CUDA / OpenGL Interoperability:

    If you just need to perform calculations (CUDA is not critical) and draw, then you can still explore one of the following approaches:

    1. OpenCL / OpenGL Interoperability: https://software.intel.com/en-us/articles/opencl-and-opengl-interoperability-tutorial
    2. Compute Shader: https://www.khronos.org/opengl/wiki/Compute_Shader
    3. Vulkan: http://www.duskborn.com/a-simple-vulkan-compute-example/