mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-22 23:05:32 +00:00
d3af0552d3
This allows the print_metadata option
9 lines
261 B
Rust
9 lines
261 B
Rust
use spirv_builder::SpirvBuilder;
|
|
use std::error::Error;
|
|
|
|
fn main() -> Result<(), Box<dyn Error>> {
|
|
// This will set the env var `example-shader.spv` to a spir-v file that can be include!()'d
|
|
SpirvBuilder::new("../example-shader").build()?;
|
|
Ok(())
|
|
}
|