YuxinxinChen / CUDA-OPENGL-interface-simple-example

CUDA produces data, OPENGL renders the data. Simple example, that is it.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use CUDA to produce the data and use OpenGL to render the data:

The steps are:

  1. Create an empty vertex buffer object (VBO)

  2. Register the VBO with Cuda

  3. Map the VBO for writing from Cuda

  4. Run Cuda kernel to modify the vertex positions

  5. Unmap the VBO

  6. Render the results using OpenGL

About

CUDA produces data, OPENGL renders the data. Simple example, that is it.


Languages

Language:Cuda 56.4%Language:CMake 43.6%