vulkano/examples/interactive-fractal
Katt 9a35fb0221
Make image_index and final_views accessible, and add new example. (#2473)
* 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>
2024-02-21 09:08:50 +01:00
..
app.rs Make image_index and final_views accessible, and add new example. (#2473) 2024-02-21 09:08:50 +01:00
Cargo.toml Add vulkano macros feature to examples that needs it (#2408) 2023-11-16 17:07:28 +01:00
fractal_compute_pipeline.rs Fix warnings for Rust 1.75 (#2436) 2023-12-28 20:32:13 +01:00
main.rs Make image_index and final_views accessible, and add new example. (#2473) 2024-02-21 09:08:50 +01:00
pixels_draw_pipeline.rs Use hard-coded vertices in eligible examples (#2454) 2024-01-16 19:30:14 +01:00
place_over_frame.rs Make image_index and final_views accessible, and add new example. (#2473) 2024-02-21 09:08:50 +01:00