cleanup
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user