grow compute shaders
This commit is contained in:
parent
62e4062cbf
commit
8902c2a0e3
16 changed files with 648 additions and 56 deletions
34
build.rs
34
build.rs
|
@ -14,26 +14,22 @@ fn main() {
|
|||
println!("cargo::rerun-if-changed=shaders/rt_quad.vert");
|
||||
println!("cargo::rerun-if-changed=shaders/rt_quad.frag");
|
||||
|
||||
println!("cargo::rerun-if-changed=shaders/rt_compute.comp");
|
||||
println!("cargo::rerun-if-changed=shaders/rt_compute_rasterize.comp");
|
||||
println!("cargo::rerun-if-changed=shaders/rt_compute_grow_one.comp");
|
||||
println!("cargo::rerun-if-changed=shaders/rt_compute_grow_two.comp");
|
||||
|
||||
#[allow(unused_must_use)]
|
||||
std::fs::remove_file("shaders/compiled/geo_cube.spv");
|
||||
#[allow(unused_must_use)]
|
||||
std::fs::remove_file("shaders/compiled/frag_cube.spv");
|
||||
#[allow(unused_must_use)]
|
||||
std::fs::remove_file("shaders/compiled/vert_cube.spv");
|
||||
#[allow(unused_must_use)]
|
||||
std::fs::remove_file("shaders/compiled/geo_cuboid.spv");
|
||||
#[allow(unused_must_use)]
|
||||
std::fs::remove_file("shaders/compiled/frag_cuboid.spv");
|
||||
#[allow(unused_must_use)]
|
||||
std::fs::remove_file("shaders/compiled/vert_cuboid.spv");
|
||||
#[warn(unused_must_use)]
|
||||
std::fs::remove_file("shaders/compiled/vert_rt_quad.spv");
|
||||
#[warn(unused_must_use)]
|
||||
std::fs::remove_file("shaders/compiled/frag_rt_quad.spv");
|
||||
#[warn(unused_must_use)]
|
||||
std::fs::remove_file("shaders/compiled/rt_compute.spv");
|
||||
std::fs::remove_file("shaders/compiled/geo_cube.spv").unwrap_or(());
|
||||
std::fs::remove_file("shaders/compiled/frag_cube.spv").unwrap_or(());
|
||||
std::fs::remove_file("shaders/compiled/vert_cube.spv").unwrap_or(());
|
||||
std::fs::remove_file("shaders/compiled/geo_cuboid.spv").unwrap_or(());
|
||||
std::fs::remove_file("shaders/compiled/frag_cuboid.spv").unwrap_or(());
|
||||
std::fs::remove_file("shaders/compiled/vert_cuboid.spv").unwrap_or(());
|
||||
std::fs::remove_file("shaders/compiled/vert_rt_quad.spv").unwrap_or(());
|
||||
std::fs::remove_file("shaders/compiled/frag_rt_quad.spv").unwrap_or(());
|
||||
std::fs::remove_file("shaders/compiled/rt_compute_rasterize.spv").unwrap_or(());
|
||||
std::fs::remove_file("shaders/compiled/rt_compute_grow_one.spv").unwrap_or(());
|
||||
std::fs::remove_file("shaders/compiled/rt_compute_grow_two.spv").unwrap_or(());
|
||||
std::fs::remove_file("shaders/compiled/rt_compute_grow_three.spv").unwrap_or(());
|
||||
|
||||
if std::env::consts::OS == "windows" {
|
||||
let mut command = Command::new("./shaders/compile.bat");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue