mirror of
https://github.com/bevyengine/bevy
synced 2024-12-26 21:13:09 +00:00
b6376ce654
# 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` |
||
---|---|---|
.. | ||
camera | ||
color | ||
mesh | ||
primitives | ||
render_graph | ||
render_phase | ||
render_resource | ||
renderer | ||
texture | ||
view | ||
extract_component.rs | ||
extract_param.rs | ||
extract_resource.rs | ||
globals.rs | ||
lib.rs | ||
pipelined_rendering.rs | ||
render_asset.rs | ||
settings.rs | ||
spatial_bundle.rs |