commit | 8dbe22c65ac2db6ca353a5947f01aed9476339a6 | [log] [tgz] |
---|---|---|
author | James Price <jrprice@google.com> | Thu May 05 22:14:20 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu May 05 22:14:20 2022 +0000 |
tree | 00b1065dbebde4e8515cc07bf40a85a43dc7e051 | |
parent | 0ce9ab042ef5896b57833dd73dfa19fc94973b13 [diff] |
Surface Vulkan validation messages in errors This change ensures that when errors are raised from WebGPU, including lost context errors, they can include any associated Vulkan validation layer messages in the message text if backend validation is enabled. This will allow these messages to be surfaced in places like when running CTS tests on browser build infrastructure. Because of how Vulkan messages are raised at the instance level, some routing of the messages to the appropriate device needed to be added. This is based on appending message IDs to object labels and then parsing them out of the message when it comes in. This change also makes Vulkan validation messages cause a device loss, which is inline with the behavior of the D3D12 backend. Bug: dawn:1396 Change-Id: I2b309ba5475a338e7e99d4b4daaa7c3d5de61011 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/88460 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Brandon Jones <bajones@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.