commit | dfa92a9cb68366a8655ac26b51af0c740bcf9b72 | [log] [tgz] |
---|---|---|
author | Antonio Maiorano <amaiorano@google.com> | Fri Dec 23 17:56:56 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Dec 23 17:56:56 2022 +0000 |
tree | 712eebfdc7f07b397802cfac4ca91aa94255b9d6 | |
parent | 16024a982d284a835ad5445dfe69595884547f46 [diff] |
tint: Fix ProgramBuilder::WrapInFunction overload not being picked up Before this change, the variadic function template version of WrapInFunction would be selected when passing a utils::VectorRef<const ast::Statement*>, even though an overload exists for that type. The reason is that during type deduction, the compiler will select templates over non-templates in its overload set. The only way around this was to avoid type-deduction by explicitly casting the argument to utils::VectorRef<const ast::Statement*>. This CL adds a CanWrapInStatement metafunction that evaluates to true if the arg type is one that could be passed to ProgramBuilder::WrapInStatement. This is used to SFINAE in the variadic args version of WrapInFunction. Change-Id: I8aa3d69e2ce7324fd60b1b2a5906a51d51b549a3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/115502 Reviewed-by: David Neto <dneto@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com> 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.