1 2void TestMatNx1() 3{ 4 float1x1 f1x1; 5 float2x1 f2x1; 6 float3x1 f3x1; 7 float4x1 f4x1; 8 9 float1x2 f1x2; 10 float1x3 f1x3; 11 float1x4 f1x4; 12 13 float1x1 r00 = transpose(f1x1); 14 float1x2 r01 = transpose(f2x1); 15 float1x3 r02 = transpose(f3x1); 16 float1x4 r03 = transpose(f4x1); 17 18 float1x1 r10 = transpose(f1x1); 19 float2x1 r11 = transpose(f1x2); 20 float3x1 r12 = transpose(f1x3); 21 float4x1 r13 = transpose(f1x4); 22} 23 24struct PS_OUTPUT { float4 color : SV_Target0; }; 25 26PS_OUTPUT main() 27{ 28 PS_OUTPUT ps_output; 29 ps_output.color = 1.0; 30 return ps_output; 31}; 32