Skip to main content

DeviceLostHandler

Type Alias DeviceLostHandler 

Source
pub type DeviceLostHandler = Arc<dyn Fn() + Send + Sync>;
Expand description

What a host runs when the device it handed a WgpuRenderer is lost, after the loss is logged. It may run on any thread.

Aliased Typeยง

pub struct DeviceLostHandler { /* private fields */ }