DeviceLostCallback


public fun interface DeviceLostCallback


Summary

Public methods

abstract void
onDeviceLost(@NonNull GPUDevice device, int reason, @NonNull String message)

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

Public methods

onDeviceLost

Added in 1.0.0-alpha01
abstract void onDeviceLost(@NonNull GPUDevice device, int reason, @NonNull String message)

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

Parameters
@NonNull GPUDevice device

The device that was lost.

int reason

The reason why the device was lost.

@NonNull String message

A human-readable message explaining the loss.