mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-28 22:45:53 +00:00
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>