bevy/examples/app
Robert Swain 936468aa1e bevy_render: Use RenderDevice to get limits/features and expose AdapterInfo (#3931)
# Objective

- `WgpuOptions` is mutated to be updated with the actual device limits and features, but this information is readily available to both the main and render worlds through the `RenderDevice` which has .limits() and .features() methods
- Information about the adapter in terms of its name, the backend in use, etc were not being exposed but have clear use cases for being used to take decisions about what rendering code to use. For example, if something works well on AMD GPUs but poorly on Intel GPUs. Or perhaps something works well in Vulkan but poorly in DX12.

## Solution

- Stop mutating `WgpuOptions `and don't insert the updated values into the main and render worlds
- Return `AdapterInfo` from `initialize_renderer` and insert it into the main and render worlds
- Use `RenderDevice` limits in the lighting code that was using `WgpuOptions.limits`.
- Renamed `WgpuOptions` to `WgpuSettings`
2022-02-16 21:17:37 +00:00
..
custom_loop.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
drag_and_drop.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
empty.rs Merge AppBuilder into App (#2531) 2021-07-27 20:21:06 +00:00
empty_defaults.rs Merge AppBuilder into App (#2531) 2021-07-27 20:21:06 +00:00
headless.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
headless_defaults.rs bevy_render: Use RenderDevice to get limits/features and expose AdapterInfo (#3931) 2022-02-16 21:17:37 +00:00
logs.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
plugin.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
plugin_group.rs Fix doc_markdown lints in examples (#3486) 2021-12-29 17:25:34 +00:00
return_after_run.rs Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
thread_pool_resources.rs Merge AppBuilder into App (#2531) 2021-07-27 20:21:06 +00:00
without_winit.rs Fix crash with disabled winit (#3330) 2021-12-15 00:15:47 +00:00