uniform half4 colorGreen;uniform half4 colorRed;bool a(){bool b=true;float c=0.;b=b&&float2(++c,0.).y==0.;b=b&&float2(0.,++c).x==0.;b=b&&float3(++c,1.,0.).yz==float2(1.,0.);b=b&&float3(1.,0.,++c).xy==float2(1.,0.);b=b&&float3(++c,1.,0.).yz==float2(1.,0.);b=b&&float4(++c,1.,0.,0.).yzw==float3(1.,0.,0.);b=b&&float4(1.,++c,1.,0.).x==1.;b=b&&float4(1.,0.,++c,1.).w==1.;b=b&&float4(1.,0.,1.,++c).xyz==float3(1.,0.,1.);return b&&c==9.;}bool b(){bool c=true;float d=0.;c=c&&float2x2(1.,2.,3.,++d)[0]==float2(1.,2.);c=c&&float2x2(float2(++d),3.,4.)[1]==float2(3.,4.);c=c&&float3x3(float3(1.),float3(++d),float3(0.))[0]==float3(1.);c=c&&float3x3(float3(1.),float3(++d),float3(0.))[2]==float3(0.);c=c&&float3x3(float3(++d),float3(1.),float3(0.))[1]==float3(1.);c=c&&float3x3(1.,2.,3.,4.,5.,++d,7.,8.,9.)[0]==float3(1.,2.,3.);c=c&&float3x3(1.,2.,3.,4.,5.,6.,d++,8.,9.)[1]==float3(4.,5.,6.);c=c&&float4x4(float4(++d),float4(1.),float4(2.),float4(3.))[1]==float4(1.);c=c&&float4x4(float4(1.),float4(++d),float4(2.),float4(3.))[2]==float4(2.);c=c&&float4x4(float4(1.),float4(1.),float4(++d),float4(3.))[3]==float4(3.);c=c&&float4x4(1.,2.,3.,4.,5.,6.,7.,8.,9.,10.,11.,12.,13.,14.,++d,16.)[3].xy==float2(13.,14.);return c&&d==11.;}half4 main(float2 c){return a()&&b()?colorGreen:colorRed;} |