use rs2glsl::macros::*; use rs2glsl::traits::*; #[glsl] fn foo() { let x: f32 = 3.0; let y: f32 = 17.0; let z: f32 = modulo(x, y); } const EXPECTED: &str = r#" void foo() { float x = 3.0; float y = 17.0; float z = mod(x, y); } "#; #[test] fn test() { assert_eq!(EXPECTED.trim(), GLSL_FOO.with_dependencies()); } fn main() { println!("{}", GLSL_FOO.with_dependencies()); }