Interface DeviceLostRecoveryCallbacks
interface DeviceLostRecoveryCallbacks {
onLost?: (info: GPUDeviceLostInfo) => void;
onRecovered?: () => void;
onRecoveryFailed?: (error: unknown) => void;
}
onLost?: (info: GPUDeviceLostInfo) => void;
onRecovered?: () => void;
onRecoveryFailed?: (error: unknown) => void;
}
Properties
Optionalon Lost
onLost?: (info: GPUDeviceLostInfo) => void
Called immediately after loss is detected and before a replacement device is requested.
Optionalon Recovered
onRecovered?: () => void
Called after the replacement device, surfaces, and enabled rendering contexts are ready.
Optionalon Recovery Failed
onRecoveryFailed?: (error: unknown) => void
Called when replacement-device acquisition or rendering-context rebuilding fails.
Callback surface shared by public rendering-context device-recovery enablers.