hlsl.entry-out.frag 375 B

123456789101112131415161718192021222324
  1. struct OutParam {
  2. float2 v;
  3. int2 i;
  4. };
  5. void fun(out OutParam op)
  6. {
  7. op.v = float2(0.4);
  8. op.i = int2(7);
  9. }
  10. float4 PixelShaderFunction(float4 input, out float4 out1, out OutParam out2, out OutParam out3) : COLOR0
  11. {
  12. out1 = input;
  13. out2.v = 2.0;
  14. out2.i = 3;
  15. OutParam local;
  16. local.v = 12.0;
  17. local.i = 13;
  18. fun(out3);
  19. return out1;
  20. }