Issue 137827
Summary [HLSL] `lerp` overloads with mixed scalar and vector operands
Labels HLSL
Assignees
Reporter bogner
    Clang currently fails to resolve `lerp` overloads where the weight parameter is a scalar. We should support overloads where `x` and `y` are vectors but the weight is scalar:
```hlsl
export float3 call(float3 x, float3 y, float weight) {
    return lerp(x, y, weight); // calls lerp(float3, float3, float3)
}
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to