Skip to main content

gpu_info_panel

Function gpu_info_panel 

Source
pub(crate) fn gpu_info_panel(ui: &mut Ui, info: &GpuInfo, initial: Option<Rect>)
Expand description

Draw the GPU-info panel for info, seeded at initial or the bottom-left corner of ui’s screen.

A free function rather than the body of the panel’s closure so a test can drive it against a bare [egui::Context]: what it has to get right — where it opens, the width it takes from its facts and the facts it prints — is a property of the widget tree, not of the world.