learn-wgpu
learn-wgpu copied to clipboard
Intermediate examples are not working on Windows 10 x64
They all get the same error:
[2022-05-27T22:59:12Z ERROR wgpu::backend::direct] Handling wgpu errors as fatal by default
thread 'main' panicked at 'wgpu error: Validation Error
Caused by:
In Device::create_shader_module
note: label = `Normal Shader`
Shader 'Normal Shader' parsing error: expected ',', found ';'
┌─ wgsl:4:24
│
4 │ view_pos: vec4<f32>;
│ ^ expected ','
expected ',', found ';'
These are the intermediate examples:
cargo run --bin tutorial10-lighting
cargo run --bin tutorial11-normals
cargo run --bin tutorial12-camera
cargo run --bin tutorial13-threading
I was depending on the gecko branch until recently as the shader code wasn't working in WASM due to a bug in naga. I've since reverted to using 0.12 directly. You'll have to update you're dependencies and do cargo clean before you build/run.
With the update to 0.13 this should be fixed. Feel free to reopen this if it isn't.