DeviceLostCallback


fun interface DeviceLostCallback


Summary

Public functions

Unit
onDeviceLost(device: GPUDevice, reason: Int, message: String)

A callback function for notification when a GPU device becomes unusable.

Public functions

onDeviceLost

Added in 1.0.0-alpha01
fun onDeviceLost(device: GPUDevice, reason: Int, message: String): Unit

A callback function for notification when a GPU device becomes unusable.

Parameters
device: GPUDevice

The device that was lost.

reason: Int

The reason why the device was lost.

message: String

A human-readable message explaining the loss.