You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
449 B
18 lines
449 B
uniform half4 colorGreen, colorRed;
|
|
|
|
struct S {
|
|
int x, y;
|
|
};
|
|
|
|
half4 main(float2 coords) {
|
|
float f1[4] = float[4](1, 2, 3, 4);
|
|
float f2[4] = float[4](1, 2, 3, 4);
|
|
float f3[4] = float[4](1, 2, 3, -4);
|
|
|
|
S s1[3] = S[3](S(1, 2), S(3, 4), S(5, 6));
|
|
S s2[3] = S[3](S(1, 2), S(0, 0), S(5, 6));
|
|
S s3[3] = S[3](S(1, 2), S(3, 4), S(5, 6));
|
|
|
|
return (f1 == f2) && (f1 != f3) && (s1 != s2) && (s3 == s1) ? colorGreen : colorRed;
|
|
}
|