()
| 3407 | |
| 3408 | #[no_mangle] |
| 3409 | pub extern "C" fn bloom_profiler_overlay_text() -> *const u8 { |
| 3410 | let snap = engine().profiler.snapshot(); |
| 3411 | let mut s = String::with_capacity(snap.len() * 48); |
| 3412 | for (label, cpu, gpu) in &snap { |
| 3413 | s.push_str(label); |
| 3414 | s.push('|'); |
| 3415 | s.push_str(&format!("{:.2}", cpu)); |
| 3416 | s.push('|'); |
| 3417 | match gpu { |
| 3418 | Some(g) => s.push_str(&format!("{:.2}", g)), |
| 3419 | None => s.push_str("-1"), |
| 3420 | } |
| 3421 | s.push('\n'); |
| 3422 | } |
| 3423 | alloc_perry_string(&s) |
| 3424 | } |
| 3425 | |
| 3426 | #[no_mangle] |
| 3427 | pub extern "C" fn bloom_set_dof(enabled: f64, focus_distance: f64, aperture: f64) { |
nothing calls this directly
no test coverage detected