1 uniform float2x2 testMatrix2x2;
2 uniform float3x3 testMatrix3x3;
3 uniform half4 colorGreen, colorRed;
5 half4 main(float2 coords) {
6 float2x3 testMatrix2x3 = float2x3(1, 2, 3, 4, 5, 6);
7 const float2x4 testMatrix2x4 = float2x4(1, 2, 3, 4, 5, 6, 7, 8);
8 const float3x2 testMatrix3x2 = float3x2(1, 2, 3, 4, 5, 6);
9 const float3x4 testMatrix3x4 = float3x4(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
10 const float4x2 testMatrix4x2 = float4x2(1, 2, 3, 4, 5, 6, 7, 8);
11 const float4x3 testMatrix4x3 = float4x3(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
12 const float4x4 testMatrix4x4 = float4x4(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16);
14 return (transpose(testMatrix2x2) == float2x2(1, 3,
16 transpose(testMatrix2x3) == float3x2(1, 4,
19 transpose(testMatrix2x4) == float4x2(1, 5,
23 transpose(testMatrix3x2) == float2x3(1, 3, 5,
25 transpose(testMatrix3x3) == float3x3(1, 4, 7,
28 transpose(testMatrix3x4) == float4x3(1, 5, 9,
32 transpose(testMatrix4x2) == float2x4(1, 3, 5, 7,
34 transpose(testMatrix4x3) == float3x4(1, 4, 7, 10,
37 transpose(testMatrix4x4) == float4x4(1, 5, 9, 13,
40 4, 8, 12, 16)) ? colorGreen : colorRed;