bevy/crates/bevy_pbr/src/render
VitalyR f5322cd757 get proper texture format after the renderer is initialized, fix #3897 (#5413)
# Objective
There is no Srgb support on some GPU and display protocols with `winit` (for example, Nvidia's GPUs with Wayland). Thus `TextureFormat::bevy_default()` which returns `Rgba8UnormSrgb` or `Bgra8UnormSrgb` will cause panics on such platforms. This patch will resolve this problem. Fix https://github.com/bevyengine/bevy/issues/3897.

## Solution

Make `initialize_renderer` expose `wgpu::Adapter` and `first_available_texture_format`, use the `first_available_texture_format` by default.

## Changelog

* Fixed https://github.com/bevyengine/bevy/issues/3897.
2022-10-10 16:10:05 +00:00
..
clustered_forward.wgsl adjust cluster index for viewport origin (#5947) 2022-09-15 21:58:14 +00:00
depth.wgsl update wgpu to 0.13 (#5168) 2022-07-14 21:17:16 +00:00
light.rs Fix some outdated file reference comments in bevy_pbr (#6111) 2022-09-27 17:51:12 +00:00
mesh.rs get proper texture format after the renderer is initialized, fix #3897 (#5413) 2022-10-10 16:10:05 +00:00
mesh.wgsl update wgpu to 0.13 (#5168) 2022-07-14 21:17:16 +00:00
mesh_bindings.wgsl update wgpu to 0.13 (#5168) 2022-07-14 21:17:16 +00:00
mesh_functions.wgsl bevy_pbr: Fix tangent and normal normalization (#5666) 2022-08-18 21:54:40 +00:00
mesh_types.wgsl bevy_pbr: Fix tangent and normal normalization (#5666) 2022-08-18 21:54:40 +00:00
mesh_vertex_output.wgsl update wgpu to 0.13 (#5168) 2022-07-14 21:17:16 +00:00
mesh_view_bindings.wgsl add globals to mesh view bind group (#5409) 2022-09-28 04:20:27 +00:00
mesh_view_types.wgsl add globals to mesh view bind group (#5409) 2022-09-28 04:20:27 +00:00
mod.rs Materials and MaterialPlugin (#3428) 2021-12-25 21:45:43 +00:00
pbr.wgsl use alpha mask even when unlit (#6047) 2022-09-28 05:54:11 +00:00
pbr_bindings.wgsl update wgpu to 0.13 (#5168) 2022-07-14 21:17:16 +00:00
pbr_functions.wgsl use alpha mask even when unlit (#6047) 2022-09-28 05:54:11 +00:00
pbr_lighting.wgsl fix spot dir nan bug (#6167) 2022-10-05 12:00:07 +00:00
pbr_types.wgsl update wgpu to 0.13 (#5168) 2022-07-14 21:17:16 +00:00
shadows.wgsl Spotlights (#4715) 2022-07-08 19:57:43 +00:00
skinning.wgsl update wgpu to 0.13 (#5168) 2022-07-14 21:17:16 +00:00
utils.wgsl adjust cluster index for viewport origin (#5947) 2022-09-15 21:58:14 +00:00
wireframe.wgsl update wgpu to 0.13 (#5168) 2022-07-14 21:17:16 +00:00