* shader struct name replacing
* added shader! `generate_structs` arg duplication error
* MacroInput.generate_structs is a bool rather than an Option<bool>
---------
Co-authored-by: Firestar99 <4696087-firestar99@users.noreply.gitlab.com>
* added tests for codegen reflect()
* added tests for a typical rust-gpu shader
* make idents that are invalid be named UnnamedX instead of panicing
* add generate_structs option to shader! macro, to disable struct generating
* get rid of macro_use extern crate
* disallow specifying a shader type for binary shaders
* fix mesh shaders output interface not being arrayed
* structs in shader interface panic with explanatory message
* fix clippy lints
Co-authored-by: Rua <ruawhitepaw@gmail.com>
---------
Co-authored-by: Firestar99 <4696087-firestar99@users.noreply.gitlab.com>
Co-authored-by: Rua <ruawhitepaw@gmail.com>
* Replace cgmath with glam in the examples
* Implement type_for_format! for glam
* Remove comment where I'm freaking out because of OpenGL flashbacks
* Update Cargo.toml
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
* Update vulkano/autogen/formats.rs
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
* Fix glam type_for_format
* Format the code
---------
Co-authored-by: marc0246 <40955683+marc0246@users.noreply.github.com>
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>