The Vulkan Samples is collection of resources to help you develop optimized Vulkan applications.
If you are new to Vulkan the API samples are the right place to start. Additionally you may find the following links useful:
Performance samples show the recommended best practice together with real-time profiling information. They are more advanced but also contain a detailed tutorial with more in-detail explanations.
Clone the repo with submodules using the following command:
git clone --recurse-submodules https://github.com/KhronosGroup/Vulkan-Samples.git cd Vulkan-Samples
Follow build instructions for your platform below.
The following shows some example command line usage on how to configure and run the Vulkan Samples.
# For the entire usage use vulkan_samples --help # For subcommand usage use vulkan_samples <sub_command> --help # Run Swapchain Images sample vulkan_samples sample swapchain_images # Run AFBC sample in benchmark mode for 5000 frames vulkan_samples sample afbc --benchmark --stop-after-frame 5000 # Run bonza test offscreen vulkan_samples test bonza --headless # Run all the performance samples for 10 seconds in each configuration vulkan_samples batch --category performance --duration 10 # Run Swapchain Images sample on an Android device adb shell am start-activity -n com.khronos.vulkan_samples/com.khronos.vulkan_samples.SampleLauncherActivity -es "cmd" "sample swapchain_images"
This project has some third-party dependencies, each of which may have independent licensing:
This project uses assets from vulkan-samples-assets. Each one has its own license.
Vulkan is a registered trademark of the Khronos Group Inc.
Donated to Khronos by Arm, with further contributions by Sascha Willems and Adam Sawicki. See CONTRIBUTORS for the full contributor list.
Also see CONTRIBUTING for contribution guidelines.