commit | c3a47ef072710d83dcc6f313d3d96d2f8d65a6f0 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Mon Oct 09 10:10:27 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Oct 09 10:10:27 2023 +0000 |
tree | ef481411bba13b165f064381a622ddb5d46f52c3 | |
parent | db8b4504953b0f2b4e75fb7d3f27e0f7bc6fcdc4 [diff] |
[tint][resolver] Add UnresolvedIdentifier, IncompleteType Have Resolver::Identifier() resolve the ast::Identifier to UnresolvedIdentifier instead of immediately erroring. This is then used by the outer expression / statement to provide the error message, which can be more specific. This also allows us to remove the 'identifier_resolve_hint_' member. Have Resolver::Identifier() resolve to IncompleteType for types that expect a template argument, but were not provided one. This is handled by Resolver::Call() for the inferred constructors, e.g 'vec3', 'mat2x4' and 'array'. This reduces the amount of duplicated code between the two methods. Both of these changes are required to make resolving of type non-recursive. Change-Id: I5186c7817f8c9c48e77445107914b7a75264ac53 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/155300 Reviewed-by: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@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.