commit | 9ff1536facc7ea62a152ba821290000dd3d6bb89 | [log] [tgz] |
---|---|---|
author | Lokbondo Kung <lokokung@google.com> | Thu Aug 22 20:56:54 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Aug 22 20:56:54 2024 +0000 |
tree | e487cdaa6b54ef66136fd5a6006bdb4c8db8af16 | |
parent | 5d8a49e88a933514ee09d165ac5a7955d9869a52 [diff] |
[dawn][emscripten] Fix promise handling and pass callback. - Before the code was effectively doing: ``` let ret = resolve(futureId); promise.finally(ret); ``` With the lambda wrapping the resolve call, the callback only happens after the resolution of the parent promise. Bug: 358445329 Change-Id: I9aca5e3476b08660780a32cac6d2cb8d70360ed1 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/203420 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org> Commit-Queue: Loko Kung <lokokung@google.com> Auto-Submit: Loko Kung <lokokung@google.com> Reviewed-by: Shrek Shao <shrekshao@google.com>
Dawn is an open-source and cross-platform implementation of the 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)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.