commit | 189f0bedad2ef369234f9cdb49ebc6b4be2e4219 | [log] [tgz] |
---|---|---|
author | James Price <jrprice@google.com> | Wed Jul 31 23:10:41 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jul 31 23:10:41 2024 +0000 |
tree | 72412e3dfa6fa9d898a6b7158bec02aa18763cc8 | |
parent | ea8da86c226efffcfc6fe481bf53418ac9caaf1f [diff] |
[ir] Refactor type validation Move the check for reference types to a common `CheckType()`, so that we can easily add other types to check for in the future. Also add a call to this function for block parameters, which are the other place that a type can show up. Some error messages become slightly less detailed, but not in a significant way. Change-Id: I2a7dca3e866abe02b4b86a5b0b9c464ee72fdfa2 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/199855 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: 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.