Skip to content

[HLSL] lerp overloads with mixed scalar and vector operands #137827

Closed
@bogner

Description

@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:

export float3 call(float3 x, float3 y, float weight) {
    return lerp(x, y, weight); // calls lerp(float3, float3, float3)
}

Metadata

Metadata

Assignees

Labels

HLSLHLSL Language Supportclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions