learn-wgpu icon indicating copy to clipboard operation
learn-wgpu copied to clipboard

Intermediate examples are not working on Windows 10 x64

Open focusright opened this issue 3 years ago • 1 comments

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

focusright avatar May 27 '22 23:05 focusright

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.

sotrh avatar Jun 06 '22 16:06 sotrh

With the update to 0.13 this should be fixed. Feel free to reopen this if it isn't.

sotrh avatar Oct 01 '22 01:10 sotrh