The parts of the toml file in the first tutorial that tell the compiler which version of wgpu to use are incorrect.
They currently read:
anyhow = "1.0"
winit = { version = "0.30", features = ["android-native-activity"] }
env_logger = "0.10"
log = "0.4"
wgpu = "28.0"
pollster = "0.3"
[target.'cfg(target_arch = "wasm32")'.dependencies]
console_error_panic_hook = "0.1.6"
console_log = "1.0"
wgpu = { version = "28.0", features = ["webgl"]}
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4.30"
web-sys = { version = "0.3", features = [
"Document",
"Window",
"Element",
]}
Whereas they should be
They currently read:
anyhow = "1.0"
winit = { version = "0.30", features = ["android-native-activity"] }
env_logger = "0.10"
log = "0.4"
wgpu = "29.0.3"
pollster = "0.3"
[target.'cfg(target_arch = "wasm32")'.dependencies]
console_error_panic_hook = "0.1.6"
console_log = "1.0"
wgpu = { version = "29.0.3", features = ["webgl"]}
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4.30"
web-sys = { version = "0.3", features = [
"Document",
"Window",
"Element",
]}
This version mismatch causes compiler errors. In particular, CurrentSurfaceTexture is only nested directly under the wgpu crate in the newer version of wgpu.
The parts of the toml file in the first tutorial that tell the compiler which version of wgpu to use are incorrect.
They currently read:
Whereas they should be
They currently read:
This version mismatch causes compiler errors. In particular,
CurrentSurfaceTextureis only nested directly under thewgpucrate in the newer version ofwgpu.