skia2/resources/sksl/folding/MatrixFoldingES3.sksl

12 lines
241 B
Plaintext
Raw Normal View History

uniform half4 colorRed, colorGreen;
bool test() {
bool ok = true;
ok = ok && (float3x2(2) == float3x2(float2(2.0, 0.0), float2(0.0, 2.0), float2(0.0)));
return ok;
}
half4 main() {
return test() ? colorGreen : colorRed;
}