commit | 89274f7f65d20acb7292007f1f77858547b34ec9 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Wed Jan 03 10:53:42 2024 +0000 |
committer | Ben Clayton <bclayton@google.com> | Wed Jan 03 10:53:42 2024 +0000 |
tree | 045f881cbe3868f51a2719250f497859aff3ea6a | |
parent | 727f67494ae7b1911514634c7c5e926b3d9a282b [diff] |
[tint][utils] Remove boolean operators from Result This is too confusing / easy to screw up with Result<bool>. Instead, add more smarts to operator==() and operator!=(), by adding equality between any success type and tint::Success. This is now the only way to check for a result. This is more verbose, but it's near impossible to screw up, and has the added benefit that test logic now forces you to write [ASSERT|EXPECT]_[EQ|NE](result, Success), which will include the result success / failure message. Change-Id: Ib6fd7d4f15cf0e4dad34b53885c6a0a92d832b3c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/166840 Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: dan sinclair <dsinclair@chromium.org>
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.