RequestAdapterCallback


fun interface RequestAdapterCallback


Summary

Public functions

Unit
onRequestAdapter(status: Int, message: String, adapter: GPUAdapter?)

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

Public functions

onRequestAdapter

Added in 1.0.0-alpha01
fun onRequestAdapter(status: Int, message: String, adapter: GPUAdapter?): Unit

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

Parameters
status: Int

The status of the adapter request.

message: String

A human-readable message providing context on the status.

adapter: GPUAdapter?

The found adapter object on success.