bevy/crates/bevy_render
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
..
macros Fix minor typos in code and docs (#7378) 2023-01-27 12:12:53 +00:00
src Add main_texture_other (#7343) 2023-01-27 18:41:01 +00:00
Cargo.toml Demand newer async-channel version (#7301) 2023-01-20 13:20:28 +00:00