1uniform float testInput; 2uniform float2x2 testMatrix2x2; 3uniform half4 colorGreen, colorRed; 4 5half4 main(float2 coords) { 6 const float4 constVal = float4(-1, 0, 1, 2); 7 const int4 expectedA = int4(-0x40800000, 0x00000000, 0x3F800000, 0x40000000); 8 9 float4 inputVal = float4(testMatrix2x2) * float4(1, 1, -1, -1); 10 const int4 expectedB = int4(0x3F800000, 0x40000000, -0x3FC00000, -0x3F800000); 11 12 return (floatBitsToInt(constVal.x) == expectedA.x && 13 floatBitsToInt(constVal.xy) == expectedA.xy && 14 floatBitsToInt(constVal.xyz) == expectedA.xyz && 15 floatBitsToInt(constVal.xyzw) == expectedA.xyzw && 16 floatBitsToInt(inputVal.x) == expectedB.x && 17 floatBitsToInt(inputVal.xy) == expectedB.xy && 18 floatBitsToInt(inputVal.xyz) == expectedB.xyz && 19 floatBitsToInt(inputVal.xyzw) == expectedB.xyzw) ? colorGreen : colorRed; 20} 21