commit | d4908670e1773c358d178b116e308e06262d9683 | [log] [tgz] |
---|---|---|
author | Antonio Maiorano <amaiorano@google.com> | Fri Nov 25 05:47:42 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Nov 25 05:47:42 2022 +0000 |
tree | df953224316ffe0540a6a873c4cb2703e7483d76 | |
parent | 8392a82a40b73685a9832d42556efd7c43e4951e [diff] |
tint: clean up const eval test framework - Remove Types variant, and replace with a type-erasing Value class instead. This is not only better for compile times, but makes the code much easier to understand. - Value wraps an internal shared_ptr to a const detail::ValueBase, allowing it to be used as a value-type (i.e. copyable), while behaving polymorphically. - Add static_asserts to Val, Vec, and Mat creation helpers to emit a more useful error message when the wrong type is passed in. Bug: tint:1581 Change-Id: Icd0d08522bedb3eab12c44efa0d1555ed6e96458 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/111700 Commit-Queue: Antonio Maiorano <amaiorano@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
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.