This commit is contained in:
Piotrek
2021-04-15 10:05:28 +02:00
parent a95c8f4bf2
commit 9cd599743d
4 changed files with 7 additions and 20 deletions
+4 -1
View File
@@ -61,7 +61,10 @@ fn main() {
let result = compiler.compile_into_spirv(&shader.source, shader.kind, &shader.src_path.to_str().unwrap(), "main", Some(&options));
match result {
Err(err) => { panic!("Failed: {}", err); },
Err(err) => {
eprintln!("{}", err);
panic!("shader compilation");
},
Ok(data) => {
write(shader.spv_path, data.as_binary_u8()).unwrap();
}