"Failed to parse WGSL" running hello-compute example on metal
taralx opened this issue · 1 comments
taralx commented
Cargo.toml:
[package]
name = "hello-compute"
version = "0.1.0"
authors = ["taralx"]
edition = "2018"
[dependencies]
bytemuck = "1.5.1"
env_logger = "0.8.3"
pollster = "0.2.2"
wgpu = "0.7.0"
Everything in src
is copied from examples/hello-compute
. cargo run
says:
No numbers were provided, defaulting to [1, 2, 3, 4]
[2021-03-21T04:28:13Z ERROR naga::front::wgsl] | [[stage(compute), workgroup_size(1)]]
[2021-03-21T04:28:13Z ERROR naga::front::wgsl] > fn main([[builtin(global_invocation_id)]] global_id: vec3<u32>) {
[2021-03-21T04:28:13Z ERROR naga::front::wgsl] | ^
wgpu error: Validation Error
Caused by:
In Device::create_shader_module
Failed to parse WGSL
taralx commented
Apparently "0.7.0" on crates.io is not the same at all as master head. :(