requestDevice method

JSPromise<GPUDevice> requestDevice([
  1. GPUDeviceDescriptor descriptor
])

The device, with the features and limits it will be held to.

A device gets exactly what it asks for. Requesting no features and then sampling a BC7 texture is a validation error, not a slow path, which is why the descriptor is worth having: the adapter is asked what it has, the intersection is requested, and the device's own features is what the backend then answers questions from.

Implementation

external JSPromise<GPUDevice> requestDevice([GPUDeviceDescriptor descriptor]);