kmeans-color-gpu 0.1.0

Calculates the average colors in an image for color quantization on the GPU.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::{env, path::Path};

use kmeans_color_gpu_preprocessor::preprocess_shaders;

fn main() {
    let out_dir = env::var_os("OUT_DIR").unwrap();
    let out_dir = Path::new(&out_dir).join("shaders");

    let shaders = Path::new("shaders");

    preprocess_shaders(&shaders, &out_dir).unwrap();

    println!(
        "cargo:rerun-if-changed={path}",
        path = shaders.to_string_lossy()
    );
}