intrinsics: Add mix(vec, vec, f32) overload

Fixed: tint:1029
Change-Id: Ie367947bd9bf65ad6bb2c278bbe4bd0740512faa
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/59446
Reviewed-by: David Neto <dneto@google.com>
Reviewed-by: James Price <jrprice@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
Ben Clayton
2021-07-23 16:43:01 +00:00
parent 053559d051
commit 7204756d4d
19 changed files with 2953 additions and 2344 deletions

View File

@@ -1494,13 +1494,8 @@ TEST_P(ResolverIntrinsicTest_ThreeParam, Error_NoParams) {
EXPECT_FALSE(r()->Resolve());
EXPECT_EQ(r()->error(),
"error: no matching call to " + std::string(param.name) +
"()\n\n"
"2 candidate functions:\n " +
std::string(param.name) + "(f32, f32, f32) -> f32\n " +
std::string(param.name) +
"(vecN<f32>, vecN<f32>, vecN<f32>) -> vecN<f32>\n");
EXPECT_THAT(r()->error(), HasSubstr("error: no matching call to " +
std::string(param.name) + "()"));
}
INSTANTIATE_TEST_SUITE_P(