mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-21 22:34:43 +00:00
4c515a81cb
* 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 |
||
---|---|---|
.. | ||
async-update | ||
basic-compute-shader | ||
buffer-allocator | ||
clear-attachments | ||
debug | ||
deferred | ||
dynamic-buffers | ||
dynamic-local-size | ||
gl-interop | ||
image | ||
image-self-copy-blit | ||
immutable-sampler | ||
indirect | ||
instancing | ||
interactive-fractal | ||
msaa-renderpass | ||
multi-window | ||
multi-window-game-of-life | ||
multiview | ||
occlusion-query | ||
pipeline-caching | ||
push-constants | ||
push-descriptors | ||
runtime-array | ||
runtime-shader | ||
self-copy-buffer | ||
shader-include | ||
shader-types-derive | ||
shader-types-sharing | ||
simple-particles | ||
specialization-constants | ||
teapot | ||
tessellation | ||
texture-array | ||
triangle | ||
triangle-v1_3 | ||
README.md | ||
run_all.sh |
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. | |
2. Select click on the tags tab. | |
3. Click on the desired version. | |
4. After selecting it should look like this. |
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.