bevy/crates/bevy_ui/src
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
..
flex Fix inconsistent children removal behavior (#6017) 2022-10-06 21:39:34 +00:00
render get proper texture format after the renderer is initialized, fix #3897 (#5413) 2022-10-10 16:10:05 +00:00
widget Limit FontAtlasSets (#5708) 2022-09-19 16:12:12 +00:00
entity.rs Make the default background color of NodeBundle transparent (#6211) 2022-10-09 21:03:05 +00:00
focus.rs bevy_reflect: Update enum derives (#5473) 2022-08-02 22:40:29 +00:00
geometry.rs Add additional constructors for UiRect to specify values for specific fields (#5988) 2022-09-27 18:11:39 +00:00
lib.rs Exclusive Systems Now Implement System. Flexible Exclusive System Params (#6083) 2022-09-26 23:57:07 +00:00
ui_node.rs Rename UiColor to BackgroundColor (#6087) 2022-09-25 00:39:17 +00:00
update.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00