enginerenderer 0.0.1

A zero-dependency offline rendering engine in pure Rust — CPU path tracing, BVH acceleration, 16-band spectral rendering, PBR materials, animation & video export.
Documentation
//! Contrat de sérialisation des formats de sortie.

use enginerenderer::api::types::core::{OutputFormat, RenderRequest};

#[test]
fn output_format_extension_values_are_stable() {
    assert_eq!(OutputFormat::Ppm.extension(), "ppm");
    assert_eq!(OutputFormat::Png.extension(), "png");
    assert_eq!(OutputFormat::Exr.extension(), "exr");
}

#[test]
fn with_format_rewrites_file_extension_only() {
    let req = RenderRequest::preview()
        .with_output("output", "shot.custom")
        .with_format(OutputFormat::Exr);
    assert_eq!(req.file_name, "shot.exr");
    assert_eq!(req.output_path().to_string_lossy(), "output/shot.exr");
}