vulkano/vulkano-shaders/src
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
..
codegen.rs 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
entry_point.rs 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
lib.rs 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
structs.rs 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