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DI4KIJMOKUDAUMVBLYFEULRDQEAC
TKNFBCKZDYYH4FXMUCMLMY5HZIVVWSH2LXGHPG5WVTYO4AJJ6REQC
let size = window.inner_size();
let size = {
let actual_size = window.inner_size();
if actual_size.width == 0 || actual_size.height == 0 {
// Assume we are actually in-built height and notify
let assumed_size = PhysicalSize::new(WINDOW_WIDTH, WINDOW_HEIGHT);
window.set_min_inner_size(Some(assumed_size));
assumed_size
} else {
// It's fine
actual_size
}
};
wgpu::Limits::downlevel_defaults()
if cfg!(feature = "webgpu") {
wgpu::Limits::downlevel_defaults()
} else if cfg!(feature = "webgl") {
wgpu::Limits::downlevel_webgl2_defaults()
} else {
unreachable!("for `web` feature, you must also enable a backend feature: `webgpu`, `webgl`")
}
let mut builder =
WindowBuilder::new().with_inner_size(dpi::LogicalSize::new(WINDOW_WIDTH, WINDOW_HEIGHT));
#[cfg_attr(not(target_arch = "wasm32"), allow(unused_mut))] // the mut is used on web
let mut builder = WindowBuilder::new()
.with_inner_size(dpi::LogicalSize::new(WINDOW_WIDTH, WINDOW_HEIGHT))
.with_min_inner_size(dpi::PhysicalSize::new(WINDOW_WIDTH, WINDOW_HEIGHT));
assets: &mut $game.assets,
world: &mut $game.world,
camera: &mut $game.camera,
render_options: &mut $game.render_options,
assets: &mut $game.internal_state.assets,
world: &mut $game.internal_state.world,
camera: &mut $game.internal_state.camera,
render_options: &mut $game.internal_state.render_options,
executor: &mut $game.executor,
assets_manager = { version = "0.11.2", features = ["hot-reloading", "embedded", "zip", "json", "toml", "flac", "wav", "jpeg", "png", "ron"] }
assets_manager = { version = "0.11.2", features = ["hot-reloading", "embedded", "flac", "wav", "jpeg", "png", "ron", "json"] }
[[package]]
name = "basic-toml"
version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2db21524cad41c5591204d22d75e1970a2d1f71060214ca931dc7d5afe2c14e5"
dependencies = [
"serde",
]
name = "sync_file"
version = "0.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a49b72df45d9c2d5fbb13b02c97437a3175d8c9860297297597d3ed715e0f046"
dependencies = [
"wasi",
]
[[package]]
name = "zip"
version = "0.6.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "760394e246e4c28189f19d488c058bf16f564016aefac5d32bb1f3b51d5e9261"
dependencies = [
"byteorder",
"crc32fast",
"crossbeam-utils",
]
[[package]]