commit | 16fb254dc3083711a1da6a2a5118cc4eb3f59b03 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Mon Sep 25 11:43:19 2023 +0000 |
committer | Ben Clayton <bclayton@google.com> | Mon Sep 25 11:43:19 2023 +0000 |
tree | 253274362f2a2df75983d2f5018cb944584c34ad | |
parent | 0bc9de83123b53a1944479e39f13d3cb859f64c9 [diff] |
[tint] Add a diag::List to tint::Failure Use this to describe _why_ the function failed. Use this in most places that currently errors with std::string. This preserves the diagnostic metadata, which would otherwise get baked into a string. Remove Diagnostic::code. It was never used, and is just consuming memory. Make Diagnostic use tint::Vector instead of std::vector. Add some magic so that 'operator<<(STREAM, Failure)' can be used with unformattable SUCCESS / FAILURE types. Simplifies test that check for success. Change-Id: I2e474c5387c3fbe68cb6b6c48b123d2597ef82e6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/152546 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: dan sinclair <dsinclair@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.