bevy/crates/bevy_render/src/texture
Dusty DeWeese 5a297d7903 Reuse texture when resolving multiple passes (#3552)
# Objective

Fixes https://github.com/bevyengine/bevy/issues/3499

## Solution

Uses a `HashMap` from `RenderTarget` to sampled textures when preparing `ViewTarget`s to ensure that two passes with the same render target get sampled to the same texture.

This builds on and depends on https://github.com/bevyengine/bevy/pull/3412, so this will be a draft PR until #3412 is merged. All changes for this PR are in the last commit.
2022-04-12 19:27:30 +00:00
..
basis.rs KTX2/DDS/.basis compressed texture support (#3884) 2022-03-15 22:26:46 +00:00
dds.rs KTX2/DDS/.basis compressed texture support (#3884) 2022-03-15 22:26:46 +00:00
hdr_texture_loader.rs Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
image_texture_conversion.rs KTX2/DDS/.basis compressed texture support (#3884) 2022-03-15 22:26:46 +00:00
image_texture_loader.rs Do not crash if RenderDevice doesn't exist (#4427) 2022-04-05 19:37:23 +00:00
image.rs KTX2/DDS/.basis compressed texture support (#3884) 2022-03-15 22:26:46 +00:00
ktx2.rs KTX2/DDS/.basis compressed texture support (#3884) 2022-03-15 22:26:46 +00:00
mod.rs Introduce SystemLabel's for RenderAssetPlugin, and change Image preparation system to run before others (#3917) 2022-03-29 19:44:45 +00:00
texture_cache.rs Reuse texture when resolving multiple passes (#3552) 2022-04-12 19:27:30 +00:00