wallr-core 0.2.1

Core library for wallr — wallpaper engine, animation system, theme provider dispatch, and package management.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub const EFFECTS_SHADER: &str = include_str!("../../shaders/effects.wgsl");

#[cfg(test)]
mod tests {
    use super::EFFECTS_SHADER;

    #[test]
    fn bundled_effect_shader_validates() {
        let module =
            naga::front::wgsl::parse_str(EFFECTS_SHADER).expect("bundled WGSL should parse");
        naga::valid::Validator::new(
            naga::valid::ValidationFlags::all(),
            naga::valid::Capabilities::all(),
        )
        .validate(&module)
        .expect("bundled WGSL should validate");
    }
}