requestDevice

inline suspend fun GPUAdapter.requestDevice(): GPUDevice(source)
inline suspend fun GPUAdapter.requestDevice(descriptor: GPUDeviceDescriptor): GPUDevice(source)

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.

MDN Reference