vulkano/examples
Yuxuan Shui 22276cdb8a
Support creating buffers and images that are not backed by vulkano-managed memory (#2413)
* Support creating images that are not backed by vulkano managed memory

* Support creating buffers that are not backed by vulkano managed memory

* Add a way to create a RawImage that doesn't own the inner image

* Add a way to create a RawBuffer that doesn't own the inner buffer

* Apply suggestions from code review

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>

* fixup! Support creating images that are not backed by vulkano managed memory

* fixup! Support creating buffers that are not backed by vulkano managed memory

---------

Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
2023-12-18 08:09:50 +01:00
..
async-update Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
basic-compute-shader Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
buffer-allocator Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
clear-attachments Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
debug Remove license notices from source files (#2401) 2023-11-08 13:49:49 +01:00
deferred Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
dynamic-buffers Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
dynamic-local-size Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
gl-interop Support creating buffers and images that are not backed by vulkano-managed memory (#2413) 2023-12-18 08:09:50 +01:00
image Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
image-self-copy-blit Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
immutable-sampler Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
indirect Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
instancing Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
interactive-fractal Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
msaa-renderpass Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
multi-window Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
multi-window-game-of-life Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
multiview Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
occlusion-query Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
pipeline-caching Add vulkano macros feature to examples that needs it (#2408) 2023-11-16 17:07:28 +01:00
push-constants Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
push-descriptors Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
runtime-array Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
runtime-shader Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
self-copy-buffer Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
shader-include Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
shader-types-derive Add vulkano macros feature to examples that needs it (#2408) 2023-11-16 17:07:28 +01:00
shader-types-sharing Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
simple-particles Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
specialization-constants Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
teapot Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
tessellation Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
texture-array Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
triangle Rename command buffer types (#2421) 2023-12-09 12:24:52 +01:00
triangle-v1_3 Rename command buffer types (#2421) 2023-12-09 12:24:52 +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.