pub fn detach_renderer_surface(renderer: &mut Renderer) -> boolExpand description
Detaches native presentation while retaining the renderer’s GPU context.
The caller must drop the winit window only after this function returns so
the surface’s raw handles remain valid through the attachment teardown.
true means an attached surface was removed; false means the renderer was
already detached. GPU devices, pipelines, caches, and offscreen state remain.
§Examples
fn suspend(renderer: &mut ailloli_ui_render_wgpu::Renderer) {
let detached: bool =
ailloli_ui_winit::wgpu_bootstrap::detach_renderer_surface(renderer);
let _ = detached;
}