Function enableDeviceLostSceneRecovery
-
enableDeviceLostSceneRecovery(
engine: EngineContext,
options?: DeviceLostRecoveryCallbacks,
): DeviceLostRecoveryHandleParameters
- engine: EngineContext
- options: DeviceLostRecoveryCallbacks = {}
Returns DeviceLostRecoveryHandle
Enable best-effort WebGPU device-lost recovery for every registered SceneContext.
Device reacquisition is coordinated per engine so additional renderer-specific recovery strategies can share the same replacement device. Every rendering context kind that is registered when the device is lost needs its own strategy enabled — recovery fails rather than leave one bound to the lost device.