requestAdapter method

JSPromise<GPUAdapter?> requestAdapter([
  1. GPURequestAdapterOptions options
])

The adapter, asked for with the options that decide which one arrives.

The options are the point of taking a descriptor at all. A laptop with two GPUs hands out the low-power one unless asked otherwise, and a renderer that has just been told to draw shadows and bloom wants the other one. The argument is optional because "whatever this machine prefers" is a real answer and the common one.

Implementation

external JSPromise<GPUAdapter?> requestAdapter([
  GPURequestAdapterOptions options,
]);