Skip to content

Slowly-growing collection of graphics sample programs.

License

Notifications You must be signed in to change notification settings

kanzwataru/knz-gfxdemos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

knz-gfxdemos

A heavily WIP collection of simple graphics sample programs. Currently mostly Vulkan, may add some OpenGL scenes as well.

Check out the simple Blender exporter under vk_meshview/tools!

DISCLAIMER: This is not meant to be an example on how to correctly use Vulkan. These examples are being made as I learn the Vulkan API, so they may contain mistakes.

Sample Programs

  • vk_hello: Just a simple Hello World for Vulkan
  • vk_meshview: Simply displaying arbitrary meshes exported from Blender. Includes Blender exporter and sample data.
  • vk_hlsl: Sample using HLSL instead of GLSL, forked from vk_meshview
  • vk_scene: Drawing multiple meshes, using GPU-driven rendering (WIP!)

All code (including init) is duplicated between the sample programs, in order to keep it easy to read and modify.

How to compile

This project uses a simple CMake setup. It handles copying sample data and compiling shaders as well.

Install dependencies

You'll need to install CMake and the LunarG SDK. All other libraries are included within the repo. The shader compiler glslc is included within LunarG SDK.

Build with CMake

Either use the CMake GUI (on Windows) or run CMake from the command line (on Linux):

$ mkdir build
$ cd build
$ cmake ..
$ make

Each sample program is in its own folder, as it's own target.

Dependencies

  • CGLM (vendored)
  • LunarG SDK
  • CMake

About

Slowly-growing collection of graphics sample programs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published