bevy/crates/bevy_render/src
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
..
camera Add FromReflect where Reflect is used (#8776) 2023-06-19 16:18:17 +00:00
color conversions between [u8; 4] and Color (#8564) 2023-05-08 16:36:46 +00:00
mesh Add FromReflect where Reflect is used (#8776) 2023-06-19 16:18:17 +00:00
primitives Add FromReflect where Reflect is used (#8776) 2023-06-19 16:18:17 +00:00
render_graph Add ViewNode to simplify render node management (#8118) 2023-05-08 19:42:23 +00:00
render_phase Apply codebase changes in preparation for StandardMaterial transmission (#8704) 2023-05-30 14:21:53 +00:00
render_resource reflect: stable type path v2 (#7184) 2023-06-05 20:31:20 +00:00
renderer Fixed several missing links in docs. (#8117) 2023-04-23 17:28:36 +00:00
texture Expand FallbackImage to include a GpuImage for each possible TextureViewDimension (#6974) 2023-06-19 22:56:25 +00:00
view Add FromReflect where Reflect is used (#8776) 2023-06-19 16:18:17 +00:00
extract_component.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
extract_param.rs Use UnsafeWorldCell to increase code quality for SystemParam (#8174) 2023-04-01 15:45:07 +00:00
extract_resource.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
globals.rs Webgpu support (#8336) 2023-05-04 22:07:57 +00:00
globals.wgsl Refactor Globals and View structs into separate shaders (#7512) 2023-02-11 17:55:18 +00:00
lib.rs Rename apply_system_buffers to apply_deferred (#8726) 2023-06-02 14:04:13 +00:00
pipelined_rendering.rs Webgpu support (#8336) 2023-05-04 22:07:57 +00:00
render_asset.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00
settings.rs Webgpu support (#8336) 2023-05-04 22:07:57 +00:00
spatial_bundle.rs enum Visibility component (#6320) 2022-12-25 00:39:29 +00:00