commit | 1260a530181eaccedf5a71d89fea953fe777f8b6 | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Tue Jul 26 17:36:44 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jul 26 17:36:44 2022 +0000 |
tree | fe39abf359f31351bf8a4bc5e7d694884d34856d | |
parent | d722e619b12cb7eb02e036faaa456b53fd73be70 [diff] |
Mark descriptor/options as optional for requestDevice/Adapter These were not marked as optional previously because it would mean that C++ methods would look like void F(a = null, b, c) which is invalid in C++ because default arguments must be contiguous and at the end of the signature. This commit adds a special case when optional=true where no_default=true still marks the argument as optional, but doesn't produce a C++ default argument. Fixed: dawn:1502 Change-Id: I1b648d37edb94b8412109fc0a06a91bbbd31b8c4 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/97002 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: 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.