vulkano/vulkano-shaders
marc0246 baf863ce33
Resolve restrictions of BufferContents, add support for allocating all types of buffers, and rework vulkano-shaders (#2132)
* Add `BufferContentsLayout`

* Rework `BufferContents`

* Add `BufferContents` derive macro

* Relax restrictions of shader code generation

* Fix examples

* Add additional invariant to `Subbuffer`

* Shorten paths a bit

* Remove a bit of bloat

* Add `Sized` constraint to element traits

* Fix an oopsie

* Add `Aligned`

* Add support for deriving `BufferContents` for sized types

* Fix alignment and padding issues

* Fix docs and add examples for `BufferContents`

* Adjust shader macro

* Add tests

* Adjust `Vertex` example

* Remove bytemuck re-export

* Update examples

* Workaround bytemuck's array elements that are `AnyBitPattern` limitation

* Add more alignments

* Fix an earlier oopsie

* Rework vulkano-shaders

* Fix examples

* Fix some rogue tabs in examples

* Add `AsRef` and `AsMut` implementation for `Padded`

* Remove useless code duplication

* Make the `BufferContents` derive macro the same for all types

* Add example docs for `Padded`

* Work around trivial bounds

* More example docs

* Minor consistency adjustment

* Add `serde` to the list of cargo features

* Make clippy happy again
2023-03-05 19:56:35 +01:00
..
src Resolve restrictions of BufferContents, add support for allocating all types of buffers, and rework vulkano-shaders (#2132) 2023-03-05 19:56:35 +01:00
tests Fix generated descriptor set layouts for shader modules with multiple entrypoints (#1497) 2021-03-14 16:33:44 +07:00
Cargo.toml Resolve restrictions of BufferContents, add support for allocating all types of buffers, and rework vulkano-shaders (#2132) 2023-03-05 19:56:35 +01:00
LICENSE-APACHE Adds LICENSE-* files to crate subdirectories (#1597) 2021-05-31 04:53:05 +07:00
LICENSE-MIT Adds LICENSE-* files to crate subdirectories (#1597) 2021-05-31 04:53:05 +07:00