mirror of
https://github.com/bevyengine/bevy
synced 2024-12-21 02:23:08 +00:00
f5322cd757
# 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. |
||
---|---|---|
.. | ||
clustered_forward.wgsl | ||
depth.wgsl | ||
light.rs | ||
mesh.rs | ||
mesh.wgsl | ||
mesh_bindings.wgsl | ||
mesh_functions.wgsl | ||
mesh_types.wgsl | ||
mesh_vertex_output.wgsl | ||
mesh_view_bindings.wgsl | ||
mesh_view_types.wgsl | ||
mod.rs | ||
pbr.wgsl | ||
pbr_bindings.wgsl | ||
pbr_functions.wgsl | ||
pbr_lighting.wgsl | ||
pbr_types.wgsl | ||
shadows.wgsl | ||
skinning.wgsl | ||
utils.wgsl | ||
wireframe.wgsl |