# Objective `wgpu` has a helper method `texture.as_image_copy()` for a common pattern when making a default-like `ImageCopyTexture` from a texture. This is used in various places in Bevy for texture copy operations, but it was not used where `write_texture` is called. ## Solution - Replace struct `ImageCopyTexture` initialization with `texture.as_image_copy()` where appropriate Signed-off-by: Torstein Grindvik <torstein.grindvik@muybridge.com> Co-authored-by: Torstein Grindvik <torstein.grindvik@muybridge.com> |
||
|---|---|---|
| .. | ||
| deferred | ||
| environment_map | ||
| prepass | ||
| render | ||
| ssao | ||
| alpha.rs | ||
| bundle.rs | ||
| extended_material.rs | ||
| fog.rs | ||
| lib.rs | ||
| light.rs | ||
| material.rs | ||
| parallax.rs | ||
| pbr_material.rs | ||
| wireframe.rs | ||