vulkano/examples
marc0246 4c515a81cb
Improve the examples' directory structure (#2375)
* Make each example its own workspace member

* Fix runtime-shader example

* Fix shader-include example

* Fix teapot example

* Fix `run_all.sh`

* Fix output files getting saved in cwd

* Fix spelling for examples readme filename

* Remove wrong leftover dependencies for gl-interop

* Fix pipeline-cache example

* Clearer .gitignore

* Help cargo be less useless
2023-10-29 18:46:14 +01:00
..
async-update Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
basic-compute-shader Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
buffer-allocator Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
clear-attachments Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
debug Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
deferred Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
dynamic-buffers Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
dynamic-local-size Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
gl-interop Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
image Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
image-self-copy-blit Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
immutable-sampler Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
indirect Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
instancing Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
interactive-fractal Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
msaa-renderpass Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
multi-window Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
multi-window-game-of-life Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
multiview Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
occlusion-query Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
pipeline-caching Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
push-constants Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
push-descriptors Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
runtime-array Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
runtime-shader Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
self-copy-buffer Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
shader-include Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
shader-types-derive Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
shader-types-sharing Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
simple-particles Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
specialization-constants Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
teapot Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
tessellation Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
texture-array Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
triangle Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
triangle-v1_3 Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
README.md Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00
run_all.sh Improve the examples' directory structure (#2375) 2023-10-29 18:46:14 +01:00

Examples

The examples shown here will not necessarily work for the latest stable release of Vulkano. By default, Github shows the most recent unstable revision, rather than the last stable release. You can switch Github to show the examples for stable releases as follows.

Selecting the version tag:

1. Find the branch/tag selection box and click it. change_tag_1
2. Select click on the tags tab. change_tag_2
3. Click on the desired version. change_tag_3
4. After selecting it should look like this. change_tag_4

Running the examples:

cargo run --bin <example>

Example:

cargo run --bin triangle

If you want to compare performances with other libraries, you should pass the --release flag as well. Rust is pretty slow in debug mode.