bevy/assets/shaders
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.wgsl add globals to mesh view bind group (#5409) 2022-09-28 04:20:27 +00:00
array_texture.wgsl Fix array_texture example (#7543) 2023-02-07 09:14:15 +00:00
cubemap_unlit.wgsl Support array / cubemap / cubemap array textures in KTX2 (#5325) 2022-07-30 07:02:58 +00:00
custom_gltf_2d.wgsl Add support for custom glTF vertex attributes. (#5370) 2023-04-24 14:20:13 +00:00
custom_material.frag Update shader_material_glsl example to include texture sampling (#5215) 2022-07-08 01:14:22 +00:00
custom_material.vert Update shader_material_glsl example to include texture sampling (#5215) 2022-07-08 01:14:22 +00:00
custom_material.wgsl update wgpu to 0.13 (#5168) 2022-07-14 21:17:16 +00:00
custom_material_screenspace_texture.wgsl Fix screenspace_texture example shader compiler error in WebGPU (Browser) (#8682) 2023-05-25 21:54:29 +00:00
custom_vertex_attribute.wgsl update wgpu to 0.13 (#5168) 2022-07-14 21:17:16 +00:00
fallback_image_test.wgsl Expand FallbackImage to include a GpuImage for each possible TextureViewDimension (#6974) 2023-06-19 22:56:25 +00:00
game_of_life.wgsl Remove unused code in game of life shader (#5349) 2022-07-17 15:24:24 +00:00
instancing.wgsl update wgpu to 0.13 (#5168) 2022-07-14 21:17:16 +00:00
line_material.wgsl Fix line material shader (#5348) 2022-07-17 15:02:57 +00:00
post_processing.wgsl Remove old post_processing example (#8376) 2023-04-15 21:48:31 +00:00
shader_defs.wgsl update wgpu to 0.13 (#5168) 2022-07-14 21:17:16 +00:00
show_prepass.wgsl shader_prepass example: disable MSAA for maximum compatibility (#8504) 2023-05-29 15:25:32 +00:00
texture_binding_array.wgsl Use only one sampler in the array texture example. (#7405) 2023-01-29 15:08:21 +00:00
tonemapping_test_patterns.wgsl Initial tonemapping options (#7594) 2023-02-19 20:38:13 +00:00