bevy/crates/bevy_render/src/texture
Duncan 64405469a5
Expand FallbackImage to include a GpuImage for each possible TextureViewDimension (#6974)
# Objective

Fixes #6920 

## Solution

From the issue discussion:

> From looking at the `AsBindGroup` derive macro implementation, the
fallback image's `TextureView` is used when the binding's
`Option<Handle<Image>>` is `None`. Because this relies on already having
a view that matches the desired binding dimensions, I think the solution
will require creating a separate `GpuImage` for each possible
`TextureViewDimension`.

---

## Changelog

Users can now rely on `FallbackImage` to work with a texture binding of
any dimension.
2023-06-19 22:56:25 +00:00
..
basis.rs Fix beta clippy lints (#7154) 2023-01-11 09:51:22 +00:00
dds.rs Updated to wgpu 0.16.0, wgpu-hal 0.16.0 and naga 0.12.0 (#8446) 2023-04-26 15:34:23 +00:00
exr_texture_loader.rs Initial tonemapping options (#7594) 2023-02-19 20:38:13 +00:00
fallback_image.rs Expand FallbackImage to include a GpuImage for each possible TextureViewDimension (#6974) 2023-06-19 22:56:25 +00:00
hdr_texture_loader.rs update image to 0.24 (#4121) 2022-05-28 02:00:55 +00:00
image_texture_conversion.rs Fix screenshots on Wayland + Nvidia (#8701) 2023-05-29 07:22:13 +00:00
image_texture_loader.rs Add support for pnm textures (#8601) 2023-05-16 23:51:47 +00:00
image.rs update bitflags to 2.3 (#8728) 2023-06-01 08:41:42 +00:00
ktx2.rs Update ruzstd and basis universal (#8622) 2023-05-17 23:29:31 +00:00
mod.rs Apply codebase changes in preparation for StandardMaterial transmission (#8704) 2023-05-30 14:21:53 +00:00
texture_cache.rs Make Resource trait opt-in, requiring #[derive(Resource)] V2 (#5577) 2022-08-08 21:36:35 +00:00