diptodip / streamer-example

Example of streaming video frames from CUDA computation to OpenGL and rendering with Dear ImGui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Streamer Example

Example of streaming video frames from CUDA computation to OpenGL and rendering with Dear ImGui.

This is based on Dear ImGui examples using GLFW, and just adds the minimum for rendering the result of a CUDA computation with PBO.

Building

To build on Windows, make sure you have initialized your environment with vcvarsall.bat x86 and then run the build batch script:

C:\path\to\streamer-example>build_release_win32.bat

Usage

Once you've built the program, you should be able to run streamer_example.exe and see the following window:

image

You should see that the gradient pattern is animated. The coin flipping window is there only to show an example of tracking state independently of CUDA operations being called.

About

Example of streaming video frames from CUDA computation to OpenGL and rendering with Dear ImGui

License:MIT License


Languages

Language:C++ 57.5%Language:C 41.1%Language:Objective-C++ 0.7%Language:Objective-C 0.3%Language:Cuda 0.2%Language:CMake 0.1%Language:Shell 0.0%Language:GLSL 0.0%Language:Batchfile 0.0%Language:GDB 0.0%