commit | 6a8b16c774aac3eaf01650cbc2ea46e192dad7ed | [log] [tgz] |
---|---|---|
author | Ryan Harrison <rharrison@chromium.org> | Wed Oct 09 21:49:35 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Oct 09 21:49:35 2024 +0000 |
tree | 568d721afb50752d9790153cd69041facb1ad9f9 | |
parent | 083a87a24617885c4ed71349badb8401ccbdf767 [diff] |
[tint][ir][val] Cleanup `CheckFunction` and utilities Refactors this code to reduce the amount of code duplication and make the flow through the function more readable. This also corrects an instance of double error reporting. This code may be less runtime efficient, since there will now be multiple passes through struct members, one per check, but at the benefit of reduced code complexity. If it turns out this causes significant performance degradation, the code can be refactored to use callbacks/work queue for iterating struct members. Fixes: 371219657 Change-Id: I1f7fcdcacd2ce3413917566f2ffc2e85aa199d12 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/210054 Auto-Submit: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Antonio Maiorano <amaiorano@google.com> Commit-Queue: 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.