Home

Awesome

Hello Vulkan

Welcome to a Vulkan™ "Hello Triangle" sample which shows how to set up a window, set up a Vulkan context, and render a triangle. This sample is designed to help you get started with Vulkan and does not use any wrappers or helper libraries - pure Vulkan all the way.

License

MIT: see LICENSE.txt for details.

System requirements

Building

Visual Studio files can be found in the hellovulkan\build directory.

If you need to regenerate the Visual Studio files, open a command prompt in the hellovulkan\premake directory and run ..\..\premake\premake5.exe vs2015 (or ..\..\premake\premake5.exe vs2013 for Visual Studio 2013.)

Vulkan also supports Linux®, of course, and Premake can generate GNU Makefiles. However, at this time, the sample itself is Windows specific (because the helper code in Window.h/.cpp is Windows specific).

Third-party software

Known issues

The sample uses PRESENT_MODE_FIFO to run with VSync. On the NVIDIA 365.19 driver, FIFO is ignored and the sample will exit after a very brief period of time. You can increase the number of frames rendered to ensure it remains visible for a couple of seconds.

Attribution