dawn.node: fix false positive failures when required features are not supported by the adapter Fixes failures like: ``` webgpu:api,operation,adapter,requestDevice:features,known:feature="texture-compression-etc2" [fail] - EXPECTATION FAILED: THREW OperationError, instead of TypeError: OperationError: Invalid feature required: Requested feature FeatureName::TextureCompressionETC2 is not supported. ``` We need to throw TypeError when require feature is not supported by the adapter as per: https://gpuweb.github.io/gpuweb/#dom-gpuadapter-requestdevice:~:text=Reject%20promise%20with%20a%20TypeError Bug: None Change-Id: Ibbe0c21c4286122f6b88ff711a486fbd30e26acf Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/269434 Reviewed-by: Peter McNeeley <petermcneeley@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com> Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.