Skip to content

[Matrix] Implement a ICK_HLSL_Matrix_Splat #168960

@farzonl

Description

@farzonl

Because there is no ICK_HLSL_Matrix_Splat and there is a ICK_HLSL_Vector_Splat We have a case where something should be ambigious and it is not. The case looks like this:
https://godbolt.org/z/haaW4c6Pa

void matOrVec(float4 F) {}
void matOrVec(float2x2 F) {}

export void Case9() {
#if ERROR
    matOrVec(2.0); // Ambiguous!
#endif
}

To fix this we need to implement a matrix splat.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    Status

    Planning

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions