Update crates/spirv-builder/README.md

Co-authored-by: Eduard-Mihai Burtescu <eddyb@lyken.rs>
This commit is contained in:
Sylvester Hesp 2022-12-20 12:25:55 +01:00 committed by Sylvester Hesp
parent f910bc1e19
commit 4747d5b3cf

View File

@ -13,11 +13,11 @@ It takes care of pulling in the `SPIR-V` backend for Rust, `rustc_codegen_spirv`
```rust
use spirv_builder::{MetadataPrintout, SpirvBuilder};
fn main() {
fn main() -> Result<(), Box<dyn std::error::Error>> {
SpirvBuilder::new("my_shaders", "spirv-unknown-vulkan1.1")
.print_metadata(MetadataPrintout::Full)
.build()
.unwrap();
.build()?;
Ok(())
}
```