bevy/crates/bevy_render/src
Torstein Grindvik b6376ce654 Add main_texture_other (#7343)
# Objective

## Use Case

A render node which calls `post_process_write()` on a `ViewTarget` multiple times during a single run of the node means both main textures of this view target is accessed.

If the source texture (which alternate between main textures **a** and **b**) is accessed in a shader during those iterations it means that those textures have to be bound using bind groups.

Preparing bind groups for both main textures ahead of time is desired, which means having access to the _other_ main texture is needed.

## Solution

Add a method on `ViewTarget` for accessing the other main texture.

---

## Changelog

### Added

- `main_texture_other` API on `ViewTarget`
2023-01-27 18:41:01 +00:00
..
camera Cascaded shadow maps. (#7064) 2023-01-25 12:35:39 +00:00
color Improve Color::hex performance (#6940) 2023-01-17 13:26:43 +00:00
mesh Update Box vertices comment (#7055) 2022-12-29 23:45:07 +00:00
primitives Cascaded shadow maps. (#7064) 2023-01-25 12:35:39 +00:00
render_graph fix clippy (#7302) 2023-01-20 14:25:25 +00:00
render_phase Reduce the use of atomics in the render phase (#7084) 2023-01-18 02:19:19 +00:00
render_resource Fix minor typos in code and docs (#7378) 2023-01-27 12:12:53 +00:00
renderer Support recording multiple CommandBuffers in RenderContext (#7248) 2023-01-22 00:21:55 +00:00
texture Add depth and normal prepass (#6284) 2023-01-19 22:11:13 +00:00
view Add main_texture_other (#7343) 2023-01-27 18:41:01 +00:00
extract_component.rs ExtractComponent output optional associated type (#6699) 2022-11-21 13:19:44 +00:00
extract_param.rs Revise SystemParam docs (#7274) 2023-01-20 13:39:23 +00:00
extract_resource.rs gate an import used only for a debug assert (#7165) 2023-01-11 20:52:04 +00:00
globals.rs bevy_reflect: Register missing reflected types for bevy_render (#6725) 2022-11-23 00:41:21 +00:00
lib.rs Cascaded shadow maps. (#7064) 2023-01-25 12:35:39 +00:00
pipelined_rendering.rs Remove App::add_sub_app (#7290) 2023-01-24 21:24:25 +00:00
render_asset.rs Fix clippy::iter_with_drain (#6485) 2022-11-06 01:42:15 +00:00
settings.rs Replace WgpuAdapterInfo with RenderAdapterInfo in the documentation. (#7036) 2022-12-26 19:47:01 +00:00
spatial_bundle.rs enum Visibility component (#6320) 2022-12-25 00:39:29 +00:00