Skip to content

MSL: row/column major issue. #2295

@urbeller

Description

@urbeller

the following matrix in HLSL:

float4x3 normalMatrix;

Gets translated to MSL as:

float3x4 normalMatrix;

Although the matrix dimensions are correct, the data does not seem to be copied correctly. For instance, an identity matrix ends up in MSL as:

1 0 0 0
0 0 0 1
0 1 0 0

It looks like we are properly generating a float3x4 matrix but with column-major data layout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther progress depends on answer from issue creator.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions