vulkano/examples
marc0246 43e2db0dbd
Command buffer allocator API 2.0 (#2403)
* Make `CommandBufferAllocator` object-safe, remove the generics

* Fix tests

* Fix examples

* Remove the panic

* Remove outdated docs

* Document `Send + Sync` impl of `UnsafeCommandBuffer`
2023-11-14 17:57:43 +01:00
..
async-update Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
basic-compute-shader Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
buffer-allocator Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
clear-attachments Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
debug Remove license notices from source files (#2401) 2023-11-08 13:49:49 +01:00
deferred Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
dynamic-buffers Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
dynamic-local-size Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
gl-interop Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
image Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
image-self-copy-blit Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
immutable-sampler Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
indirect Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
instancing Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
interactive-fractal Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
msaa-renderpass Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
multi-window Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
multi-window-game-of-life Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
multiview Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
occlusion-query Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
pipeline-caching Remove license notices from source files (#2401) 2023-11-08 13:49:49 +01:00
push-constants Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
push-descriptors Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
runtime-array Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
runtime-shader Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
self-copy-buffer Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
shader-include Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
shader-types-derive Remove license notices from source files (#2401) 2023-11-08 13:49:49 +01:00
shader-types-sharing Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
simple-particles Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
specialization-constants Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
teapot Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
tessellation Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
texture-array Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
triangle Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +01:00
triangle-v1_3 Command buffer allocator API 2.0 (#2403) 2023-11-14 17:57:43 +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.