commit | 200b856a1a25d680d0027876cb8425989779fd9b | [log] [tgz] |
---|---|---|
author | Kai Ninomiya <kainino@chromium.org> | Wed Jul 02 14:32:45 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jul 02 14:32:45 2025 -0700 |
tree | 8c9ff8da37d56ac721dbb5083656da82c3c8b10e | |
parent | 13600cd646900af9ca24d3c3bcc086f5989d8d33 [diff] |
[dawn] minor generator refactors - Fold nullable_annotation with as_annotated_cType. This is a bit simpler than generating it via jinja macro. - Refactor decorate()/annotate(). - Make `Type`s know whether they are nullable. - Factor out render_c_function_args/render_c_method_args macros. - Factor out render_member_declaration macro. - Remove "2" suffix handling for methods. The only generation differences: - Adds WGPU_NULLABLE to wgpuDawnWireClientDeviceCreateBuffer()'s return type (in gen/include/dawn/wire/client/webgpu.h). - Removes extra blank lines in webgpu_cpp.h. - Add a spurious blank line that's in upstream to reduce the diff. Bug: 427657664, 42241461 Change-Id: Ie9209d5d8b18c9e5d78b3e55c976189650c885f0 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/250234 Reviewed-by: Loko Kung <lokokung@google.com> Auto-Submit: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Loko Kung <lokokung@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.