yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
d5f3ad6c
main
1float4 c4 ; 2float4 t4 ; 3float4 f4 ; 4float t ; 5float f ; 6 7float4 vectorCond () 8{ 9return (c4 ?t4 :f4 )+ 10 (c4 ?t :f )+ 11 (t4 < f4 ?t4 :f4 )+ 12 (c4 ?t :f4 ); 13} 14 15float4 scalarCond () 16{ 17float4 ret = t != f ?t * f4 :1 ; 18return ret ; 19} 20 21float2 fbSelect (bool2 cnd ,float2 src0 ,float2 src1 ) 22{ 23return cnd ?src0 :src1 ; 24} 25 26float4 PixelShaderFunction (float4 input ) :COLOR0 27{ 28int a = 1 < 2 ?3 < 4 ?5 :6 :7 ; 29int b = 1 < 2 ?3 > 4 ?5 :6 :7 ; 30int c = 1 > 2 ?3 > 4 ?5 :6 :7 ; 31int d = 1 > 2 ?3 < 4 ?5 :6 :7 ; 32float4 ret = a * input + 33b * input + 34c * input + 35d * input ; 36int e ; 37e = a = b ?c = d :10 ,b = a ?d = c :11 ; 38float4 f ; 39f = ret .x < input .y ?c * input :d * input ; 40uint g = d > 0.0 ?0b010101u :0u ; 41uint h = g > 0.0 ?0B111111u :0u ; 42uint i = h > 0.0 ?0b0101u :0B01 ; 43uint j = i > 0.0 ?0xabcd :0xbcda ; 44return e * ret + f + vectorCond ()+ scalarCond ()+ 45float4 (fbSelect (bool2 (true, false),float2 (1.0 ,2.0 ),float2 (3.0 ,4.0 )),10.0 ,10.0 ); 46}