diff --git a/src/writer/glsl/generator_impl.cc b/src/writer/glsl/generator_impl.cc index 7668b28af4..b4143f7f4a 100644 --- a/src/writer/glsl/generator_impl.cc +++ b/src/writer/glsl/generator_impl.cc @@ -1339,7 +1339,7 @@ std::string GeneratorImpl::generate_builtin_name( case sem::IntrinsicType::kIsNan: return "isnan"; case sem::IntrinsicType::kMix: - return "lerp"; + return "mix"; case sem::IntrinsicType::kReverseBits: return "reversebits"; case sem::IntrinsicType::kSmoothStep: diff --git a/src/writer/glsl/generator_impl_import_test.cc b/src/writer/glsl/generator_impl_import_test.cc index 9f4dddf9db..3c92396318 100644 --- a/src/writer/glsl/generator_impl_import_test.cc +++ b/src/writer/glsl/generator_impl_import_test.cc @@ -212,7 +212,7 @@ TEST_P(GlslImportData_TripleParam_ScalarTest, Float) { INSTANTIATE_TEST_SUITE_P(GlslGeneratorImplTest_Import, GlslImportData_TripleParam_ScalarTest, testing::Values(GlslImportData{"fma", "mad"}, - GlslImportData{"mix", "lerp"}, + GlslImportData{"mix", "mix"}, GlslImportData{"clamp", "clamp"}, GlslImportData{"smoothStep", "smoothstep"})); diff --git a/src/writer/glsl/generator_impl_intrinsic_test.cc b/src/writer/glsl/generator_impl_intrinsic_test.cc index 8e81801246..603fa5f73c 100644 --- a/src/writer/glsl/generator_impl_intrinsic_test.cc +++ b/src/writer/glsl/generator_impl_intrinsic_test.cc @@ -235,7 +235,7 @@ INSTANTIATE_TEST_SUITE_P( IntrinsicData{IntrinsicType::kMax, ParamType::kU32, "max"}, IntrinsicData{IntrinsicType::kMin, ParamType::kF32, "min"}, IntrinsicData{IntrinsicType::kMin, ParamType::kU32, "min"}, - IntrinsicData{IntrinsicType::kMix, ParamType::kF32, "lerp"}, + IntrinsicData{IntrinsicType::kMix, ParamType::kF32, "mix"}, IntrinsicData{IntrinsicType::kNormalize, ParamType::kF32, "normalize"}, IntrinsicData{IntrinsicType::kPow, ParamType::kF32, "pow"}, IntrinsicData{IntrinsicType::kReflect, ParamType::kF32, "reflect"},