mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-21 22:34:43 +00:00
9a35fb0221
* Make image_index and final_views accessible, and new example. The first 2 changes should make creating frame buffers easier. The new example should make it easier to learn vulkano-util. * Remove unnecessary imports, and run clippy. * Run fmt. * .acquire() no longer returns image_index * rename final_views() to swapchain_image_views() The name change makes it more consistent with swapchain_image_view(). Personally I don't understand why the field name is final_views, yet we externally in function names refer to it as swapchain image views and such like. * Fractal example no longer creates framebuffer every frame. * Game of life example no longer creates framebuffer every frame. (Also removed a piece of code I had commented out, but had forgotten to remove from the fractal example.) * Rename if_recreate_swapchain to on_recreate_swapchain and update acquire() documentation. to on_recreate_swapchain * on_recreate_swapchain is now impl FnOnce instead of generics based FnMut Thanks marc0246! Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com> * Replace empty comment with an actual comment. --------- Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com> |
||
---|---|---|
.. | ||
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 | ||
mesh-shader | ||
msaa-renderpass | ||
multi-window | ||
multi-window-game-of-life | ||
multiview | ||
occlusion-query | ||
offscreen | ||
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-util | ||
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.