onDeviceRestored
onDeviceRestored(
listener): () =>void
Defined in: render/renderer.ts:382
Called after the device has been rebuilt AND refilled — everything the GPU held is new storage, so content the game drew itself (a render texture) is blank until it is drawn again. Returns the unsubscribe.
Parameters
Section titled “Parameters”listener
Section titled “listener”Returns
Section titled “Returns”() => void