I have only noticed this as I was writing the changelog.
@coolcatcoder for future reference, `&Vec<T>` is an anti-pattern. There's nothing more you can do with it than with `&[T]` (because the reference is immutable) and it means that we can't use a different underlying buffer without a breaking change.
* 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>
* Up vk version in shader compilation
* Update test in codegen.rs
* cargo +nightly fmt
* Update lib.rs
* clippy + fmt fixes
* simplify changes
* post merge
There is no `vulkan-utils` package in current Ubuntu repos. But there used to be one in ubuntu 20.04, which was a compatibility alias for the `vulkan-tools` package that is still around. So I guess you meant `vulkan-tools`?
* Add support for the `ext_mesh_shader` extension
* Helper function for queries
* Documentation update
* Add mesh primitives generated query
* Derp
* Support in vulkano-shaders too
* More doc fixes
* Better docs, explicitly saying when the values must be `Some` or `None`.
* Update vulkano/src/pipeline/graphics/mod.rs
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
---------
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
* Make the combination disclaimers **impossible** to miss
* Add headings to the examples for improved visibility
* Update vulkano/src/memory/allocator/mod.rs
Co-authored-by: Rua <ruawhitepaw@gmail.com>
---------
Co-authored-by: Rua <ruawhitepaw@gmail.com>
* 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>