Aller au contenu

GPUDeviceDescriptor

GPUDeviceDescriptor describes a device request. See [GPUDeviceDescriptor in the WebGPU specification](https://www.w3.org/TR/webgpu/#dictdef-gpudevicedescriptor).

Properties

defaultQueue

The descriptor for the default GPUQueue. See [GPUDeviceDescriptor.defaultQueue in the WebGPU specification](https://www.w3.org/TR/webgpu/#dom-gpudevicedescriptor-defaultqueue).

label

abstract val label: String
The initial value of GPUObjectBase.label. See [GPUObjectDescriptorBase.label in the WebGPU specification](https://www.w3.org/TR/webgpu/#dom-gpuobjectdescriptorbase-label).

onUncapturedError

Callback invoked for errors that are not captured by an error scope.

requiredFeatures

Specifies the features that are required by the device request. The request will fail if the adapter cannot provide these features. Exactly the specified set of features, and no more or less, will be allowed in validation of API calls on the resulting device.

requiredLimits

Specifies the limits that are required by the device request. The request will fail if the adapter cannot provide these limits. Each key with a non-undefined value must be the name of a member of supported limits.