vulkano/examples
Let 63cc50e6b2
Make PipelineCache::new safe (#2670)
* Add safe PipelineCache::new_empty method

* Add example to PipelineCache::merge

* Make `PipelineCache::new` safe
2025-04-04 06:45:28 +02:00
..
async-update Fix min swapchain image amount to allow variable MAX_FRAMES_IN_FLIGHT in examples (#2669) 2025-03-25 21:47:49 +01:00
basic-compute-shader Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
bloom Fix min swapchain image amount to allow variable MAX_FRAMES_IN_FLIGHT in examples (#2669) 2025-03-25 21:47:49 +01:00
buffer-allocator Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
clear-attachments Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
debug Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
deferred Fix min swapchain image amount to allow variable MAX_FRAMES_IN_FLIGHT in examples (#2669) 2025-03-25 21:47:49 +01:00
dynamic-buffers Clippy fixes for Rust 1.86.0 (#2674) 2025-04-04 06:44:36 +02:00
dynamic-local-size Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
gl-interop Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
image Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
image-self-copy-blit Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
immutable-sampler Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
indirect Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
instancing Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
interactive-fractal Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
mesh-shader Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
msaa-renderpass Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
multi-window Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
multi-window-game-of-life Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
multiview Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
occlusion-query Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
offscreen Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
pipeline-caching Make PipelineCache::new safe (#2670) 2025-04-04 06:45:28 +02:00
push-constants Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
push-descriptors Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
ray-tracing Fix min swapchain image amount to allow variable MAX_FRAMES_IN_FLIGHT in examples (#2669) 2025-03-25 21:47:49 +01:00
ray-tracing-auto std::mem::{size_of[val],align_of[val]} are in the prelude now; use 'em (#2647) 2025-02-09 20:39:30 +01:00
runtime-array Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
runtime-shader Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
self-copy-buffer Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
shader-include Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
shader-types-derive Add PhysicalDevice::presentation_support (#2562) 2024-09-11 17:02:27 +02:00
shader-types-sharing Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
simple-particles Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
specialization-constants Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
teapot Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
tessellation Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
texture-array Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
triangle Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
triangle-util Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
triangle-v1_3 Rename existing Info struct constructors to new (#2643) 2025-02-09 17:12:42 +01:00
README.md Fix typos and introduce a workflow (#2537) 2024-06-30 13:19:35 +02:00
run-all.ps1 Improve examples scripts (#2397) 2025-04-01 13:41:17 +02:00
run-all.sh Improve examples scripts (#2397) 2025-04-01 13:41:17 +02: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.