
Every warning is fixed except for
b39df9a8d2/crates/bevy_render/src/texture/texture_descriptor.rs (L61)
because I didn't know what the required feature is.
I opened https://github.com/gfx-rs/wgpu/issues/1213 for that.
16 lines
789 B
Rust
16 lines
789 B
Rust
/// A resource for configuring usage of the `rust_winit` library.
|
|
#[derive(Debug, Default)]
|
|
pub struct WinitConfig {
|
|
/// Configures the winit library to return control to the main thread after
|
|
/// the [run](bevy_app::App::run) loop is exited. Winit strongly recommends
|
|
/// avoiding this when possible. Before using this please read and understand
|
|
/// the [caveats](winit::platform::run_return::EventLoopExtRunReturn::run_return)
|
|
/// in the winit documentation.
|
|
///
|
|
/// This feature is only available on desktop `target_os` configurations.
|
|
/// Namely `windows`, `macos`, `linux`, `dragonfly`, `freebsd`, `netbsd`, and
|
|
/// `openbsd`. If set to true on an unsupported platform
|
|
/// [run](bevy_app::App::run) will panic.
|
|
pub return_from_run: bool,
|
|
}
|