requestDevice method
The requestDevice()
method of the
GPUAdapter interface returns a Promise
that fulfills with a
GPUDevice object, which is the primary interface for communicating with
the GPU.
Implementation
external JSPromise<GPUDevice?> requestDevice([GPUDeviceDescriptor descriptor]);