extern crate ispc;
fn compile_kernel() {
let mut cfg = ispc::Config::new();
cfg.file("vendor/ISPC Texture Compressor/ispc_texcomp/kernel.ispc");
cfg.opt_level(2);
cfg.optimization_opt(ispc::opt::OptimizationOpt::FastMath);
cfg.woff();
cfg.compile("kernel");
}
fn compile_kernel_astc() {
let mut cfg = ispc::Config::new();
cfg.file("vendor/ISPC Texture Compressor/ispc_texcomp/kernel_astc.ispc");
cfg.opt_level(2);
cfg.optimization_opt(ispc::opt::OptimizationOpt::FastMath);
cfg.woff();
cfg.compile("kernel_astc");
}
fn main() {
compile_kernel();
compile_kernel_astc();
}