commit | 8c58491d25e5079fbda8ebc948bc39773e21542e | [log] [tgz] |
---|---|---|
author | Austin Eng <enga@chromium.org> | Thu Jan 14 00:51:58 2021 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Thu Jan 14 00:51:58 2021 +0000 |
tree | 6dd2778b1fec24c726873ca9131c7f16a77483c0 | |
parent | 3639186e7e6ae8fb83a46b796f3ca3b896bdc5ae [diff] |
dawn_wire: Skip device inject error if the client drops the device If the client drops the last reference to the device, it would dereference an invalid pointer upon calling InjectError. So, skip the call. We can't keep the device alive if the Buffer is still alive because we intend to make all objects internally null if you delete their device. It is ok to skip error injection because if the client deletes the device, it should not expect to receive any more error callbacks. Bug: dawn:384 Change-Id: I4c694310e4395b06cd49603fc5d4cd846799decb Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/37580 Reviewed-by: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
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.