| commit | 316fb47afe7683fbd1d0db4fab6111d9e255ac6e | [log] [tgz] |
|---|---|---|
| author | Ben Clayton <bclayton@google.com> | Thu Jul 28 14:11:17 2022 +0000 |
| committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jul 28 14:11:17 2022 +0000 |
| tree | 4723a2ed757ae366fb33195c917c50911ed2a00b | |
| parent | 8b30c7f12470195d0200e6d0126365e9e8bde75f [diff] |
dawn/node: Fix crash when using device after destroy() Do not assign null to the wgpu::Device, as this will result in a nullptr dereference if you attempt to use the device after destruction. The wgpu device correctly handles the error state of being used after destroy(). Fixes crashes of CTS tests: 'webgpu:api,validation,state,device_lost,destroy,*' Change-Id: Ibee1078436efadf25f53735fbaa47d5fc5f74898 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/97442 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.