commit | 9d6265bc072546e92c1cea293e209e079d7345fb | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Wed Nov 04 10:04:17 2020 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Wed Nov 04 10:04:17 2020 +0000 |
tree | acfa20ad48363bee01914c687a48e8920a760b3c | |
parent | bf1e9532c46e64a56a2c99e4067c0959bc9b1461 [diff] |
Fix examples when using the wire. Previously the surface argument of CreateSwapChain was made un-optional to prevent a compilation error. This broke examples because the device-compatibility part of the wire would start dereferencing a null pointer. Instead of making the surface non-optional, make optional objects not produce = nullptr for method calls in webgpu_cpp.h. Bug: dawn:22 Change-Id: Icef357cc2b11ed452c78431dde514e4d497ae159 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/31565 Reviewed-by: Shaobo Yan <shaobo.yan@intel.com> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@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.