webGpuSupport abstract method

Future<LiteRtLmWebGpuSupport> webGpuSupport()

Asks the browser for a WebGPU adapter as @litert-lm/core does before it creates a GPU engine (navigator.gpu.requestAdapter({ powerPreference: 'high-performance'})). Throws when the request itself fails.

Implementation

Future<LiteRtLmWebGpuSupport> webGpuSupport();