sim_lib_view_spatial/glance_map.rs
1//! Halo mapping through the shared device glance reducer.
2
3use sim_kernel::{Expr, Result};
4use sim_lib_view_device::{DeviceProfile, GlanceReducer};
5
6/// Reduces a general Scene to the Halo mono-HUD Scene form.
7///
8/// This is intentionally a thin call into [`GlanceReducer`]. The shared device
9/// layer owns card extraction and fitting semantics, so Halo stays a configured
10/// one-card route instead of a private HUD encoder.
11pub fn halo_glance_scene(scene: &Expr, profile: &DeviceProfile) -> Result<Expr> {
12 GlanceReducer.reduce(scene, profile)
13}