ranim_render/primitives.rs
1pub mod mesh_items;
2pub mod viewport;
3pub mod vitems;
4
5/// Shared path for the GPU smoke tests' rendered images.
6#[cfg(test)]
7pub(crate) fn test_output_path(filename: &str) -> std::path::PathBuf {
8 let output_dir = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("../../output");
9 std::fs::create_dir_all(&output_dir).expect("Failed to create output directory");
10 output_dir.join(filename)
11}