bevy/examples/shader
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
..
animate_shader.rs reflect: stable type path v2 (#7184) 2023-06-05 20:31:20 +00:00
array_texture.rs reflect: stable type path v2 (#7184) 2023-06-05 20:31:20 +00:00
compute_shader_game_of_life.rs Webgpu support (#8336) 2023-05-04 22:07:57 +00:00
custom_vertex_attribute.rs reflect: stable type path v2 (#7184) 2023-06-05 20:31:20 +00:00
fallback_image.rs Expand FallbackImage to include a GpuImage for each possible TextureViewDimension (#6974) 2023-06-19 22:56:25 +00:00
post_processing.rs fix missed examples in WebGPU update (#8553) 2023-05-16 20:31:30 +00:00
shader_defs.rs reflect: stable type path v2 (#7184) 2023-06-05 20:31:20 +00:00
shader_instancing.rs Webgpu support (#8336) 2023-05-04 22:07:57 +00:00
shader_material.rs reflect: stable type path v2 (#7184) 2023-06-05 20:31:20 +00:00
shader_material_glsl.rs reflect: stable type path v2 (#7184) 2023-06-05 20:31:20 +00:00
shader_material_screenspace_texture.rs reflect: stable type path v2 (#7184) 2023-06-05 20:31:20 +00:00
shader_prepass.rs reflect: stable type path v2 (#7184) 2023-06-05 20:31:20 +00:00
texture_binding_array.rs Expand FallbackImage to include a GpuImage for each possible TextureViewDimension (#6974) 2023-06-19 22:56:25 +00:00