hlsl.intrinsic.frexp.frag 781 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. float PixelShaderFunctionS(float inF0, float inF1)
  2. {
  3. float r000 = frexp(inF0, inF1);
  4. return 0.0;
  5. }
  6. float2 PixelShaderFunction2(float2 inF0, float2 inF1)
  7. {
  8. float2 r000 = frexp(inF0, inF1);
  9. return float2(1,2);
  10. }
  11. float3 PixelShaderFunction3(float3 inF0, float3 inF1)
  12. {
  13. float3 r000 = frexp(inF0, inF1);
  14. return float3(1,2,3);
  15. }
  16. float4 PixelShaderFunction(float4 inF0, float4 inF1)
  17. {
  18. float4 r000 = frexp(inF0, inF1);
  19. return float4(1,2,3,4);
  20. }
  21. // TODO: FXC doesn't accept this with (), but glslang doesn't accept it without.
  22. #define MATFNS(MT) \
  23. MT r000 = frexp(inF0, inF1);
  24. struct PS_OUTPUT { float4 color : SV_Target0; };
  25. PS_OUTPUT main()
  26. {
  27. PS_OUTPUT ps_output;
  28. ps_output.color = 1.0;
  29. return ps_output;
  30. };