rust-gpu/examples/example-runner/build.rs
Ashley Hauck d3af0552d3
Move to a builder struct for spirv-builder (#59)
This allows the print_metadata option
2020-10-14 15:48:21 +02:00

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(())
}