tint: End-to-end tests for f16 built-in

This patch add Tint end-to-end tests for built-ins using f16 types.

Bug: tint:1473, tint:1502
Change-Id: I09db6e0b7e90541fb246e11d475e27be96a6d07e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/97340
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
This commit is contained in:
Zhaoming Jiang
2022-08-05 15:15:17 +00:00
committed by Dawn LUCI CQ
parent 20cddbf04c
commit 9443cebd53
2862 changed files with 123369 additions and 17 deletions

View File

@@ -495,7 +495,7 @@ func IsDeclarable(fqn sem.FullyQualifiedName) bool {
}
// OverloadUsesF16 returns true if the overload uses the f16 type anywhere in the signature.
func OverloadUsesF16(overload *sem.Overload) bool {
func OverloadUsesF16(overload sem.Overload) bool {
for _, param := range overload.Parameters {
if DeepestElementType(param.Type).Target.GetName() == "f16" {
return true