1struct PS_OUTPUT 2{ 3 float4 Color : SV_Target0; 4}; 5 6uniform bool4 b4a, b4b; 7uniform bool b1a, b1b; 8 9PS_OUTPUT main() 10{ 11 bool4 r00 = !b4a; 12 bool4 r01 = b4a && b4b; // vec, vec 13 bool4 r02 = b4a || b4b; // vec, vec 14 15 bool4 r10 = b1a && b4b; // scalar, vec 16 bool4 r11 = b1a || b4b; // scalar, vec 17 18 bool4 r20 = b4a && b1b; // vec, scalar 19 bool4 r21 = b4a || b1b; // vec, scalar 20 21 PS_OUTPUT psout; 22 psout.Color = r00 || r01 || r02 || r10 || r11 || r20 || r21; 23 return psout; 24} 25