Skip to content

joshbrew/Vulkan-Compute-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vulkan 1.0.61.1 Compute w/ GLFW 3.2.1

N-Body example using Vulkan Computes.

  • Other examples that can be converted to run on this.
  • Works on Windows, should work on Linux, can re-add Android support.

With:

  • GLI
  • GLM
  • STB
  • ImGui
  • Assimp

I compiled this on VS 2015, the project files are included.

How:

Screenshot

I used Vulkan 1.0.61.1, and the other additional dependencies are in the the provided file named as such.

Find the working .exe in x64/Debug. You can change the particle and shader behaviors without recompiling by tweaking the particles.comp shader then reloading the SPIRV numbers by clicking the generate-spirv batch file in the shaders folder next to the .exe.

Only real issue is window resizing, as well as the non-working VulkanUIOverlay.cpp (found in Project1/unused/need updating). This will enable overlay menus using ImGui.

Sascha's examples need only be modified to fit the correct VulkanBase class name, and the correct main loop sequence as indicated in the comments below the VulkanBase class in VulkanBase.h. There are hundreds of examples, though some will require the nonworking file.

Changes:

12/31: Changed the example to N-Body and added all the files that needed updating, plus dependencies. Only one that did not work correctly was VulkanUIOverlay.cpp.

About

N-Body Simulation, based on Sascha Willems examples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors