Nowadays the metal shading language specification states that it's possible, but still it doesn't specify the order, section 2.3.2 Matrix Constructors says:
Since Metal 2, a matrix of type T with n columns and m rows > can also be constructed from n * m
scalars of type T. The following examples are legal constructors:
float2x2(float, float, float, float);
float3x2(float, float, float, float, float, float);
I'm too lazy to bounce data to the shader and back just to check, but I'd appreciate if anybody who knows would answer to the initial question, and even better would make a clarification in that document
BTW the document: https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf
Topic:
Graphics & Games
SubTopic:
General
Tags: