blob: bab1a7e5781fa2c3a8d652a1faea6e471794d367 [file] [log] [blame]
uniform half4 colorGreen, colorRed;
uniform float3x3 testMatrix3x3;
noinline float3x3 GetTestMatrix() {
return testMatrix3x3;
}
half4 main(float2 coords) {
float expected = 0.0;
for (int i=0; i<3; ++i) {
for (int j=0; j<3; ++j) {
expected += 1.0;
if (GetTestMatrix()[i][j] != expected) {
return colorRed;
}
}
}
return colorGreen;
}