hlsl.constructexpr.frag 405 B

123456789101112131415161718
  1. struct PS_OUTPUT { float4 color : SV_Target0; };
  2. PS_OUTPUT main()
  3. {
  4. // Evaluates to a sequence: 3, 4, 5, 6, 7, 8, and a float2(9,10), float2(11,12) sequence
  5. (int(3));
  6. (int(3) + int(1));
  7. (int(3) + int(1) + int(1));
  8. (((int(6))));
  9. (int(7.0));
  10. ((int((2)) ? 8 : 8));
  11. (float2(9, 10), float2(11, 12));
  12. PS_OUTPUT ps_output;
  13. ps_output.color = 1.0;
  14. return ps_output;
  15. }