Use CUDA to produce the data and use OpenGL to render the data:
The steps are:
-
Create an empty vertex buffer object (VBO)
-
Register the VBO with Cuda
-
Map the VBO for writing from Cuda
-
Run Cuda kernel to modify the vertex positions
-
Unmap the VBO
-
Render the results using OpenGL