Better WGSL parsing errors
This commit is contained in:
parent
bc8426e37a
commit
a3d808eb1b
|
@ -147,7 +147,7 @@ impl ShaderLoader {
|
|||
match parser.parse(&source) {
|
||||
Ok(module) => Ok(module),
|
||||
// TODO handle parsing errors
|
||||
Err(error) => panic!("wgsl parsing error:\n{}", error),
|
||||
Err(error) => panic!("wgsl parsing error:\n{}", error.emit_to_string(&source)),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue