8000 GitHub - Forceflow/cuda2GLcore: Implementation of Cuda to OpenGL rendering
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Forceflow/cuda2GLcore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cuda2GLcore

This is an implementation of the SimpleCuda2GL sample provided in the CUDA Samples by Nvidia. The project shows how to generate a texture in CUDA and use it in an OpenGL context without copying it to main memory. The original implementation uses Glut and OpenGL immediate mode to draw the resulting texture.

This implementation improves on the original example by using GLEW, GLFW and OpenGL 4.5 core, using buffer objects, allowing your applications to be analyzed by excellent tools such as Renderdoc, which only support core OpenGL Profiles.

Note: This example was based on the CUDA 8.0 samples and has been updated to work with newer CUDA versions. Since CUDA 11.0, the official NVIDIA sample has been problematic for me to run (issue here). I'm working on pulling this example in line with the official samples. For now, this still seems like a good starting point, unless you're on OSX.

Usage

In the msvc folder, there is a VS2017 and a VS2019 project (both have been tested using the VS Community Edition). Use thecustom_includes.props file to define the locations of your GLEW and GLFW installations, then run the project.

Cuda2GLCore example

Notes

  • This code contains helper libraries by Nvidia. All of the code samples are available under a permissive license that allows you to freely incorporate them into your applications and create derivative works for commercial, academic, or personal use.

About

Implementation of Cuda to OpenGL rendering

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0