hlsl.entry-in.frag 326 B

123456789101112131415161718192021
  1. struct InParam {
  2. float2 v;
  3. float4 fragCoord : SV_POSITION;
  4. int2 i2;
  5. };
  6. float fun(InParam p)
  7. {
  8. return p.v.y + p.fragCoord.x;
  9. }
  10. float4 PixelShaderFunction(InParam i) : COLOR0
  11. {
  12. InParam local;
  13. local = i;
  14. float ret1 = fun(local);
  15. float ret2 = fun(i);
  16. return local.fragCoord * ret1 * ret2;
  17. }