filtrate 0.2.1

GPU texture filter library: built-in filters (blur, brightness, color matrix, ...) and runtime, built on filtrate-core.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Compiles the static Filtrate GPU shaders for the selected target.

use std::path::PathBuf;

fn main() {
    let shader_root =
        PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR must be set"))
            .join("src/shaders/shared");
    shaderloom::build::compile_wgsl_shader(shader_root.join("blit.wgsl"), "filter_blit");
    shaderloom::build::compile_wgsl_shader(
        shader_root.join("multi_input_filter.wgsl"),
        "multi_input_filter",
    );
}