bevy/crates/bevy_render
Andrii Borziak 12aadfd4a6 Support raw buffers in AsBindGroup macro (#7701)
# Objective

There was PR that introduced support for storage buffer is `AsBindGroup` macro [#6129](https://github.com/bevyengine/bevy/pull/6129), but it does not give more granular control over storage buffer, it will always copy all the data no matter which part of it was updated. There is also currently another open PR #6669 that tries to achieve exactly that, it is just not up to date and seems abandoned (Sorry if that is not right). In this PR I'm proposing a solution for both of these approaches to co-exist using `#[storage(n, buffer)]` and `#[storage(n)]` to distinguish between the cases.

We could also discuss in this PR if there is a need to extend this support to DynamicBuffers as well.
2023-02-22 22:43:29 +00:00
..
macros Support raw buffers in AsBindGroup macro (#7701) 2023-02-22 22:43:29 +00:00
src Support raw buffers in AsBindGroup macro (#7701) 2023-02-22 22:43:29 +00:00
Cargo.toml Initial tonemapping options (#7594) 2023-02-19 20:38:13 +00:00