commit | e115bd3f2e50a0bab0fc2690b49f6335c9138290 | [log] [tgz] |
---|---|---|
author | Devon Loehr <dloehr@google.com> | Fri Jul 19 13:25:28 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jul 19 13:25:28 2024 +0000 |
tree | cec599dac8461e9ded302e2bad0bd8c3886d6e56 | |
parent | e5dc0b76fa8bb4bcfd3845c988a6b57b83ffda36 [diff] |
Make implicit `this` capture explicit When declaring a lambda with a value-capture default [=, ...], the this pointer is implicitly captured by value as well. This results in potentially-unintuitive behavior and has been deprecated in C++20. It produces a warning in newer versions of clang (https://reviews.llvm.org/D142639). This prevents the warning by changing all lambdas which capture `this` by value to capture all their variables explicitly, with no default. This strategy preserves compatibility with prior C++ versions. It does not change the compiled code at all, since it's just removing some syntactic sugar. Bug: chromium:351004963 Change-Id: I29623f5dc5bbee760ac5d9f0abe2df0e2e8c2d4c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/198754 Commit-Queue: Devon Loehr <dloehr@google.com> Reviewed-by: Ryan Harrison <rharrison@chromium.org> Reviewed-by: James Price <jrprice@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.