I need to display the results of calculations I did with CUDA into the screen.
I have a dll that uses CUDA and calculates the results. This dll copies the data from video memory into CPU memory which its address is passed by the dll interface.
The program that use this dll is written in C# and uses opengl.
Each time I want to draw the results I create recreate the vertex buffer in opengl in the C# program.
It would be much faster if I could simply draw the results I calculated in CUDA from the GPU memory, without copying it into CPU memory and then back into GPU memory.
Is there a way to do it when I have my application divided into a dll and a C# program?
The C# program is the GUI.