////
//// = Vulkan Samples // omit in toc :pp: {plus}{plus} ifndef::site-gen-antora[] :toc: endif::[]
image::banner.jpg[Vulkan Samples banner]
ifndef::site-gen-antora[] == Vulkan Documentation Site
Documentation for the samples is best viewed at the new link:https://docs.vulkan.org/samples/latest/README.html[Vulkan Documentation Site]. The documentation uses AsciiDoc which isn't fully supported by github.
endif::[]
== Introduction
The Vulkan Samples is collection of resources to help you develop optimized Vulkan applications.
If you are new to Vulkan the xref:samples/api/README.adoc[API samples] are the right place to start. Additionally you may find the following links useful:
ifdef::site-gen-antora[]
ifndef::site-gen-antora[]
xref:samples/performance/README.adoc[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.
=== Goals
== Samples
== General information
== Setup
Prerequisites: https://git-scm.com/downloads[git] with https://docs.github.com/en/repositories/working-with-files/managing-large-files/installing-git-large-file-storage[git large file storage (git-lfs)].
Clone the repo with submodules using the following command:
Follow build instructions for your platform below.
The full repository is very large, and some ISPs appear to have trouble providing a robust connection to github while the clone is being made.
If you notice problems such as submodules downloading at reported rates in the tens of kB/s, or fatal timeout errors occurring, these may be due to network routing issues to github within your ISP's internal network, rather than anything wrong in your own networking setup.
It can be very difficult to get ISPs to acknowledge such problems exist, much less to fix them.
One workaround is to switch the repository to use ssh protocol prior to the submodule download, which can be done via e.g.
While this can be a good alternative if you are running into this connection issue, you must have GitHub ssh key authentication setup to use ssh protocol - see link:https://docs.github.com/en/authentication/connecting-to-github-with-ssh[Connecting to GitHub with SSH] for details. So it is a not a solution we can implement as the repository default.
== Build
=== Supported Platforms
== Usage
The following shows some example command line usage on how to configure and run the Vulkan Samples.
Make sure that you are running the samples from the root directory of the repository. Otherwise the samples will not be able to find the assets. ./build/app/bin/
/ /vulkan_samples
vulkan_samples --help
vulkan_samples
vulkan_samples sample swapchain_images
vulkan_samples sample afbc --benchmark --stop-after-frame 5000
vulkan_samples sample compute_nbody --headless_surface -screenshot 5
vulkan_samples batch --category performance --duration 10
== License
See link:LICENSE[LICENSE].
This project has some third-party dependencies, each of which may have independent licensing:
This project uses assets from https://github.com/KhronosGroup/Vulkan-Samples-Assets[vulkan-samples-assets]. Each one has its own license.
=== Trademarks
Vulkan is a registered trademark of the Khronos Group Inc.
== Contributions
Donated to Khronos by Arm, with further contributions by Sascha Willems and Adam Sawicki. See xref:CONTRIBUTORS.adoc[CONTRIBUTORS] for the full contributor list.
Also see xref:CONTRIBUTING.adoc[CONTRIBUTING] for contribution guidelines.
== Related resources