mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-25 00:04:11 +00:00
Update crates/spirv-builder/README.md
Co-authored-by: Eduard-Mihai Burtescu <eddyb@lyken.rs>
This commit is contained in:
parent
f910bc1e19
commit
4747d5b3cf
@ -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(())
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user