pub type PumpInitFn<T> = Box<dyn FnOnce(&Instance, &Adapter, &Surface<'static>) -> Option<PumpInit<T>> + Send>;Expand description
Per-backend GPU init, run once the instance / adapter / surface
exist (on the pump thread on Windows, inline elsewhere). Returns
None on failure (editor stays blank, host survives). Must NOT
configure the surface - the pump does that with the returned
configuration.
Aliased Typeยง
pub struct PumpInitFn<T>(/* private fields */);