RequestDeviceCallback


fun interface RequestDeviceCallback


Summary

Public functions

Unit
onRequestDevice(status: Int, message: String, device: GPUDevice?)

A callback function invoked upon the completion of requesting a GPU device from an adapter.

Public functions

onRequestDevice

Added in 1.0.0-alpha01
fun onRequestDevice(status: Int, message: String, device: GPUDevice?): Unit

A callback function invoked upon the completion of requesting a GPU device from an adapter.

Parameters
status: Int

The status of the device request.

message: String

A human-readable message providing context on the status.

device: GPUDevice?

The created device object on success.