pub type FrameHook = Rc<dyn Fn(FrameStats, PresentStats)>;Expand description
The measurement hook that receives one pair of statistics per presented frame.
The platform calls it after each present with the frame’s pipeline statistics and what the present did. Nothing in the library sets it: it exists so a benchmark can record one entry per frame while the frames run.
Aliased Type§
pub struct FrameHook { /* private fields */ }