The repository contains everything required to compile and build the examples on Windows, Linux and Android using a C++ compiler that supports C++11. All required dependencies are included.
Use the provided CMakeLists.txt with CMake to generate a build configuration for your favorite IDE or compiler, e.g.:
cmake -G "Visual Studio 14 2015 Win64"
Use the provided CMakeLists.txt with CMake to generate a build configuration for your favorite IDE or compiler.
Note that you need assimp in order to compile the examples for Linux. Either compile and install from the repository, or install libassimp-dev. The examples require at least version 3.2.
- XCB: Default WSI (if no cmake option is specified)
- Wayland: Use cmake option
USE_WAYLAND_WSI
(-DUSE_WAYLAND_WSI=ON
) - DirectToDisplay: Use cmake option
USE_D2D_WSI
(-DUSE_D2D_WSI=ON
)
Building on Android is done using Android Studio (Google's own and free Android IDE) and requires a device that supports Vulkan. Please see the Android readme for details on how to build and run the samples.
Building for iOS and macOS is done using the examples Xcode project found in the xcode directory. These examples use the MoltenVK Vulkan driver to provide Vulkan support on iOS and macOS, and require an iOS or macOS device that supports Metal. Please see the MoltenVK Examples readme for more info on acquiring MoltenVK and building and deploying the examples on iOS and macOS.