driver property

RenderDriverKind driver
final

The thread that runs the session's graphics work, which depends on the target:

  • RenderDriverKind.callerGraphicsThread for a shared or dedicated EGL or WGL context, an existing WebGL context, or a browser's WebGPU device.
  • RenderDriverKind.coreWorker for a transferred WebGL canvas, an Android, OpenHarmony, or Win32 window, a Wayland surface, a ring of Android hardware buffers, dmabufs, DXGI shared textures, or IOSurfaces, or an offscreen session.
  • Either one for another Metal or Vulkan target.

An attach with another driver fails with Status.unsupported.

An isolate cannot service a caller-graphics-thread driver, because Dart can resume it on another native thread after any await. Host native code services such a session on the graphics thread by passing its id to mln_render_session_service_driver_work().

Implementation

final RenderDriverKind driver;