bevy/crates/bevy_render
Daniel McNab 8de03b0839 Extract resources into their target location (#5271)
# Objective

- Extracting resources currently always uses commands, which requires *at least* one additional move of the extracted value, as well as dynamic dispatch.
- Addresses https://github.com/bevyengine/bevy/pull/4402#discussion_r911634931

## Solution

- Write the resource into a `ResMut<R>` directly.
- Fall-back to commands if the resource hasn't been added yet.
2022-07-10 21:04:35 +00:00
..
macros Better Materials: AsBindGroup trait and derive, simpler Material trait (#5053) 2022-06-30 23:48:46 +00:00
src Extract resources into their target location (#5271) 2022-07-10 21:04:35 +00:00
Cargo.toml Extract resources into their target location (#5271) 2022-07-10 21:04:35 +00:00