Better WGSL parsing errors

This commit is contained in:
mars 2022-05-05 03:08:35 -06:00
parent bc8426e37a
commit a3d808eb1b
1 changed files with 1 additions and 1 deletions

View File

@ -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)),
}
}