commit | df909306835aaac8326dd6a06bac2efdca43ee01 | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Mon Oct 05 11:03:21 2020 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Mon Oct 05 11:03:21 2020 +0000 |
tree | ac4c35d75406f1ce5e7413aa4b841656c5742e84 | |
parent | ed3a93f690dedae1a0659d16b260e78cb4229fa1 [diff] |
wire::client: Make Buffer::MapAsync surface server-side errors. In the WebGPU specification, validation errors for mapAsync take precedence over the early-unmap or early-destroy promise resolution. Change the client to wait for the mapAsync status from the server before sending the cancelation through the callback. If the server sends back an error, then it takes precedence over the client-side status. Also adds tests for the updated semantic. Bug: dawn:445 Change-Id: I7bf1d8bbb3cb62d73ab19ecdf0aad2963e854964 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/29300 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Stephen White <senorblanco@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 webgpu.h docs)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.