DeviceLostCallback


fun interface DeviceLostCallback


Summary

Public functions

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

A callback function for handling device loss events.

Public functions

onDeviceLost

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

A callback function for handling device loss events.

Parameters
device: GPUDevice

A pointer to the device that was lost.

reason: Int

The reason for the device loss.

message: String

An optional message providing more details on the device loss.