commit | 9a8099eb8bee6f7e01435ee9850885560f1d0460 | [log] [tgz] |
---|---|---|
author | Nico Weber <thakis@chromium.org> | Fri Oct 08 14:39:39 2021 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Oct 08 14:39:39 2021 +0000 |
tree | 5f826b41a2ebe73a7af85af21e00b5359043dcc1 | |
parent | 5497aad24034ff797de11fceffe7882065b756a0 [diff] |
Fix Wbitwise-instead-of-logical warnings `a && b` only evaluates b if a is true. `a & b` always evaluates both a and b. If a and b are of type bool, `&&` is usually what you want, so clang now warns on `&` where both arguments are of type bool. From what I can tell, in Dawn it wasn't important if we evaluate both branches or not in the places where this fired, so I went with `&&` everywhere. Bug: chromium:1255745 Change-Id: Ifa196a7150d5bdfb8527fe8b6f40d7e2e957d609 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/66200 Auto-Submit: Nico Weber <thakis@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Nico Weber <thakis@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.